fix: get gamepad input working again

ci-dev
LeRoyce Pearson 2024-04-23 21:44:19 -06:00
parent a99c27cb87
commit 80caf66884
2 changed files with 6 additions and 6 deletions

View File

@ -16,8 +16,8 @@
// internet connectivity. // internet connectivity.
.dependencies = .{ .dependencies = .{
.seizer = .{ .seizer = .{
.url = "https://github.com/leroycep/seizer/archive/2be76fb909fc487da4983a487d0695fc749f714a.tar.gz", .url = "https://github.com/leroycep/seizer/archive/5dcad668e4b9f873060cbaccaf8a4a1c2f4f0bc8.tar.gz",
.hash = "12207072224809e8a8d2c1342b5e14db5b6fbb1fbbd7f5c6410d71d3708c9241261e", .hash = "122041f3ceeb4198fcef9edd8c4c377852ab540c94428397dd35236883f4e40b0b9a",
}, },
}, },
.paths = .{ .paths = .{

View File

@ -55,22 +55,22 @@ pub fn init(context: *seizer.Context) !void {
try context.addButtonInput(.{ try context.addButtonInput(.{
.title = "move_up", .title = "move_up",
.on_event = moveUp, .on_event = moveUp,
.default_bindings = &.{.dpad_up}, .default_bindings = &.{.dpup},
}); });
try context.addButtonInput(.{ try context.addButtonInput(.{
.title = "move_down", .title = "move_down",
.on_event = moveDown, .on_event = moveDown,
.default_bindings = &.{.dpad_down}, .default_bindings = &.{.dpdown},
}); });
try context.addButtonInput(.{ try context.addButtonInput(.{
.title = "move_left", .title = "move_left",
.on_event = moveLeft, .on_event = moveLeft,
.default_bindings = &.{.dpad_left}, .default_bindings = &.{.dpleft},
}); });
try context.addButtonInput(.{ try context.addButtonInput(.{
.title = "move_right", .title = "move_right",
.on_event = moveRight, .on_event = moveRight,
.default_bindings = &.{.dpad_right}, .default_bindings = &.{.dpright},
}); });
try context.addButtonInput(.{ try context.addButtonInput(.{
.title = "select_or_place", .title = "select_or_place",