Add customisable hotkey binds#1705
Add customisable hotkey binds#1705laurirasanen wants to merge 4 commits intoValveSoftware:masterfrom
Conversation
1ccf22e to
8834afd
Compare
|
Hmmm, this has a decent amount of overlap with fef0bca I wonder if these two things can be merged. We should also make this configurable from lua. |
|
Oh neat, I can have a go at frankensteining something together |
8834afd to
d89ce3b
Compare
799653a to
4d66df1
Compare
5f1a8fa to
833cbab
Compare
|
Alright, I've ported the code to use the gamescope_action_binding protocol, and added configuration via lua. Couple things I'm still unsure about: We probably want default keys + commands defined somewhere in cpp-land in case the lua config file doesn't exist. Starting another thread for hotkeys feels icky, but wlserver has to be running in order to bind actions, and I wasn't sure where else to put it. |
|
Can we make this not just execute a command, but just run a lua function that can do that? |
eb1f82d to
58a9714
Compare
|
Added a lua function for running ConCommands.
|
58a9714 to
a6afd30
Compare
a6afd30 to
5d9ad24
Compare
5d9ad24 to
91d22b3
Compare
91d22b3 to
e1afe7f
Compare
e1afe7f to
aa7923d
Compare
This PR moves hotkey handling out of backends and adds configuration via lua. Adds support for issue #457.