ControlsRework: Possible todo list
authorWuzzy
Thu, 25 Apr 2019 13:35:45 +0100
changeset 1856 2d2693ace6fe
parent 1855 699f4981643d
child 1857 b76bb83d8db6
ControlsRework: Possible todo list
ControlsRework.wiki
--- a/ControlsRework.wiki	Thu Apr 25 12:51:08 2019 +0100
+++ b/ControlsRework.wiki	Thu Apr 25 13:35:45 2019 +0100
@@ -25,6 +25,15 @@
 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
 
 === B) Use scancodes in frontend, engine und config. Create a small helper program that queries scancode in frontend to replace the drop-down menu ===
+
+How it's supposed to work:
+ # Write SDL window for getting the key. It must give scancode as return/exit code
+ # Frontend: Replace drop-down with widget that opens the SDL window and detect the exit code
+ # Save scancode in config file
+ # Frontend: Figure out how to turn the scancode into human-readable text
+
+Criteria:
+
  # Yes.
  # No obvious solution in sight. Maybe there is one?
    * Possible, hacky solution: Convert scancode to keycode using a hardcoded lookup table or something like that