mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-05 14:10:27 -04:00
keyboard mapping
This commit is contained in:
parent
b6c5658b48
commit
bf59962724
7 changed files with 392 additions and 49 deletions
|
@ -1,14 +1,25 @@
|
|||
#include "global_context.h"
|
||||
#include "input.h"
|
||||
#include "../platform.h"
|
||||
|
||||
char get_control_key_state() {
|
||||
return 0; //todo
|
||||
return get_sdl_global_context().get_control_key_state()?1:0;
|
||||
}
|
||||
char get_shift_key_state() {
|
||||
return 0; //todo
|
||||
return get_sdl_global_context().get_shift_key_state()?1:0;
|
||||
}
|
||||
char get_capslock_state() {
|
||||
return get_sdl_global_context().get_capslock_state()?1:0;
|
||||
}
|
||||
uint32_t _bios_keybrd(int mode) {
|
||||
return 0;
|
||||
if (mode == _KEYBRD_READY) {
|
||||
return get_sdl_global_context().is_keyboard_ready()?1:0;
|
||||
} else if (mode == _KEYBRD_READ) {
|
||||
return get_sdl_global_context().pop_keyboard_code();
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void SetWheelMapping(char up, char down) { //todo
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue