mirror of https://git.sr.ht/~kikoodx/kble
Legendary delete inserted
This commit is contained in:
parent
11d6ebef3c
commit
f14c60c630
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue