Key and joystick assignation by oxp
Posted: Sat Apr 18, 2015 2:37 pm
I'm working on an oxp, and I wanted to know if it was currently possible to assign an oxp function to a key from the keyboard, or to a joystick button/axis, rather than using "N", "n", "b"?
If this isn't possible, would it be desirable?
What I envision would be for an oxp to be able to submit a keyword.
A graphical interface would allow the player to assign this keyword to the available keys/joystick buttons/axis.
When the key/joystick button/axis would be pressed, an event would be fired with the keyword as argument.
The oxp may then act on the event.
Note that this way, the player himself chooses what keys/buttons are used. No problem of overcrowded keyboard.
It also solves the problem (that I have as a player) of too much equipments to cycle through when I need _that_ equipment.
Thoughts ?
If this isn't possible, would it be desirable?
What I envision would be for an oxp to be able to submit a keyword.
A graphical interface would allow the player to assign this keyword to the available keys/joystick buttons/axis.
When the key/joystick button/axis would be pressed, an event would be fired with the keyword as argument.
The oxp may then act on the event.
Note that this way, the player himself chooses what keys/buttons are used. No problem of overcrowded keyboard.
It also solves the problem (that I have as a player) of too much equipments to cycle through when I need _that_ equipment.
Thoughts ?