diff --git a/src/actions.zig b/src/actions.zig index 4458d1f..36b21f2 100644 --- a/src/actions.zig +++ b/src/actions.zig @@ -100,7 +100,7 @@ pub const ActionsDef = .{ }, .move_DOWN_LEFT = Action{ .category = ActionCat.movement, - .function_move = movement.move_up_left, + .function_move = movement.move_down_left, }, // Down-right. .move_down_right = Action{ @@ -113,6 +113,12 @@ pub const ActionsDef = .{ .function_move = movement.move_down_right, }, + // Verbs. + .verb_delete = Action{ + .category = ActionCat.verb, + .function_verb = Level.action_delete, + }, + // Scale. .scale_reset = Action{ .category = ActionCat.scale, diff --git a/src/main.zig b/src/main.zig index eeb064a..2475549 100644 --- a/src/main.zig +++ b/src/main.zig @@ -69,6 +69,8 @@ pub fn main() !void { bindings['B'] = &ActionsDef.move_DOWN_LEFT; bindings['n'] = &ActionsDef.move_down_right; bindings['N'] = &ActionsDef.move_DOWN_RIGHT; + // Verbs + bindings['d'] = &ActionsDef.verb_delete; // Scale. bindings['='] = &ActionsDef.scale_reset; bindings['+'] = &ActionsDef.scale_up;