-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] _Basic_ VDF support #54
base: master
Are you sure you want to change the base?
Conversation
…() function, and vdf2sensible_json() function
…ate_keys() function, and vdf2sensible_json() function" This reverts commit f681c73.
…th join_duplicate_keys() and load_vdf() functions
…), which specifies the .vdf file to load
…urce_bindings keys with values in load_vdf()
…m item, rather than just the binding dict entry
… trackpad (in mouse mode only)
… set_trackpad_config()
…ete scrollwheel support
…ng() will return null on failure, took out try/except blocks
…w key key_press bindings
…mply removes underscores from key_press bindings; this fixes shift keys, may fix other things
…ch group" event setting to functions
…eamcontroller.config.json2vdf() and steamcontroller.config.vdf2json(), respectively
…ble.py is now in src/config.py, primarily but not entirely in a class called Configurator
…en both are in axis mode
…ict and a single if statement for key name replacement
Oh yeah - one other little thing I'm not super happy with. Right now, it takes whatever keycode you have configured and adds 0x100 to it. This is to get the libinput subsystem to recognize the input as gamepad input instead of keyboard input. I'm intending to make this optional at some point in the future. |
…nfig and runs self.generate_eventmapper(); changed load_config() to utilize import_config(); and changed __init__() to not call generate_eventmapper() directly
…rns all three modes
…no longer forcing GAMEPAD mode
…e much more common KEY_ESC
Had to WIP this. Finally got to a point of actually play testing this and it turns out that if I'm holding a grip to modeshift, press a button that's modeshifted, release the grip, then release the modeshifted button, it never sends a "released" code for the modeshifted button. I consider this a critical enough problem that this shouldn't be merged until it's resolved. I'll try to have something in for it by the end of the weekend. |
Hello, I was occupied by many other things. What is the the current status have you solved your bug ? Thank you for your work anyway. |
This PR adds a new script, sc-configurable.py, which accepts a .vdf as an argument. It also fixes a couple issues I found along the way.
I will note that there are quite a few things that this PR does not add support for. Anything other than the Full_Press action is unsupported. A handful of input group modes are not yet working - most notably, axes for triggers does not work.
Notable things that are working:
Issues fixed:
And a few other little additions that other coders might appreciate:
Last but not least, I did alter styling in a couple places while I was working. I apologize for that, it got caught up being committed with some other work. There are only a few lines on which it happened, so if it bothers you, I'll change it back.