ControlsRework.wiki
changeset 1855 699f4981643d
parent 1854 0da81c188327
child 1856 2d2693ace6fe
equal deleted inserted replaced
1854:0da81c188327 1855:699f4981643d
    22  # No.
    22  # No.
    23  # Yes.
    23  # Yes.
    24 
    24 
    25 Summary: The problem with our current approach is point 1. The frontend displays the wrong key. The fact that the game inconsistently uses keycodes AND scancodes is also a little insane. Any solution definitely must fix point 1, otherwise it gains us nothing
    25 Summary: The problem with our current approach is point 1. The frontend displays the wrong key. The fact that the game inconsistently uses keycodes AND scancodes is also a little insane. Any solution definitely must fix point 1, otherwise it gains us nothing
    26 
    26 
    27 === B) Use scancodes in frontend, engine und config. Crate a small helper program that queries scancode in frontend to replace the drop-down menu ===
    27 === B) Use scancodes in frontend, engine und config. Create a small helper program that queries scancode in frontend to replace the drop-down menu ===
    28  # Yes.
    28  # Yes.
    29  # No obvious solution in sight. Maybe there is one?
    29  # No obvious solution in sight. Maybe there is one?
    30    * Possible, hacky solution: Convert scancode to keycode using a hardcoded lookup table or something like that
    30    * Possible, hacky solution: Convert scancode to keycode using a hardcoded lookup table or something like that
    31    * https://github.com/hluk/qxtglobalshortcut/blob/16446200b699e0610b8a5fb20b74938225d81d87/src/xcbkeyboard.h#L249
    31    * https://github.com/hluk/qxtglobalshortcut/blob/16446200b699e0610b8a5fb20b74938225d81d87/src/xcbkeyboard.h#L249
    32  # Yes. Convert scancode to keycode with SDL_GetKeyFromScancode
    32  # Yes. Convert scancode to keycode with SDL_GetKeyFromScancode