… | |
… | |
308 | $self->{need_update} = 1; |
308 | $self->{need_update} = 1; |
309 | $self->SUPER::update; |
309 | $self->SUPER::update; |
310 | } |
310 | } |
311 | |
311 | |
312 | my %DIR = ( |
312 | my %DIR = ( |
|
|
313 | CFPlus::SDLK_KP5, [0, "stay fire"], |
313 | CFPlus::SDLK_KP8, [1, "north"], |
314 | CFPlus::SDLK_KP8, [1, "north"], |
314 | CFPlus::SDLK_KP9, [2, "northeast"], |
315 | CFPlus::SDLK_KP9, [2, "northeast"], |
315 | CFPlus::SDLK_KP6, [3, "east"], |
316 | CFPlus::SDLK_KP6, [3, "east"], |
316 | CFPlus::SDLK_KP3, [4, "southeast"], |
317 | CFPlus::SDLK_KP3, [4, "southeast"], |
317 | CFPlus::SDLK_KP2, [5, "south"], |
318 | CFPlus::SDLK_KP2, [5, "south"], |
… | |
… | |
349 | } elsif ($sym == CFPlus::SDLK_F9 && !$mod) { |
350 | } elsif ($sym == CFPlus::SDLK_F9 && !$mod) { |
350 | $::SETUP_DIALOG->toggle_visibility; |
351 | $::SETUP_DIALOG->toggle_visibility; |
351 | } elsif (!$::CONN) { |
352 | } elsif (!$::CONN) { |
352 | return 0; # bindings further down need a valid connection |
353 | return 0; # bindings further down need a valid connection |
353 | |
354 | |
354 | } elsif ($sym == CFPlus::SDLK_KP5 && !($mod & ~CFPlus::KMOD_SHIFT)) { |
|
|
355 | $::CONN->user_send ("stay fire"); |
|
|
356 | } elsif ($uni == ord ",") { |
355 | } elsif ($uni == ord ",") { |
357 | $::CONN->user_send ("take"); |
356 | $::CONN->user_send ("take"); |
358 | } elsif ($uni == ord " ") { |
357 | } elsif ($uni == ord " ") { |
359 | $::CONN->user_send ("apply"); |
358 | $::CONN->user_send ("apply"); |
360 | } elsif ($uni == 13) { |
359 | } elsif ($uni == 13) { |