mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-24 00:02:43 +02:00
port: add keybind menu
This commit is contained in:
1 parent
cea9527936
commit
c8db5fa106
3 files changed
+378
-14
No files matched your search
@@ -6,6 +6,7 @@
|
||||
|
||||
#define INPUT_MAX_CONTROLLERS MAXCONTROLLERS
|
||||
#define INPUT_MAX_CONTROLLER_BUTTONS 32
|
||||
#define INPUT_MAX_BINDS 4
|
||||
|
||||
#define CONT_STICK_XNEG 0x10000
|
||||
#define CONT_STICK_XPOS 0x20000
|
||||
@@ -115,6 +116,8 @@ s32 inputButtonPressed(s32 idx, u32 contbtn);
|
||||
// if bind is -1, picks a bind slot automatically
|
||||
void inputKeyBind(s32 idx, u32 ck, s32 bind, u32 vk);
|
||||
|
||||
const u32 *inputKeyGetBinds(s32 idx, u32 ck);
|
||||
|
||||
// get VK_ value from human-readable name
|
||||
s32 inputGetKeyByName(const char *name);
|
||||
|
||||
@@ -165,4 +168,9 @@ void inputUpdate(void);
|
||||
// call this before configSave()
|
||||
void inputSaveConfig(void);
|
||||
|
||||
void inputSetDefaultKeyBinds(void);
|
||||
|
||||
void inputClearLastKey(void);
|
||||
s32 inputGetLastKey(void);
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user