input: prevent duplicate input configs

This commit is contained in:
Alex Mirrlees-Black 2024-04-23 22:38:18 +10:00
parent 9bbd34a0e3
commit 5fbf174c36

View File

@ -91,6 +91,7 @@ pub fn input(
for (server.input_manager.configs.items) |*input_config| {
if (mem.eql(u8, input_config.glob, args[1])) {
try input_config.parse(args[2], args[3]);
break;
}
} else {
var input_config: InputConfig = .{