Key and joystick assignation by oxp

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

Post Reply
User avatar
Day
---- E L I T E ----
---- E L I T E ----
Posts: 545
Joined: Tue Mar 03, 2015 11:35 am
Location: Paris

Key and joystick assignation by oxp

Post by Day »

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 ?
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: Key and joystick assignment by oxp

Post by Wildeblood »

Assignment. Assignation means something different.
Day wrote:
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"?
No, it is not possible yet.
User avatar
Day
---- E L I T E ----
---- E L I T E ----
Posts: 545
Joined: Tue Mar 03, 2015 11:35 am
Location: Paris

Re: Key and joystick assignation by oxp

Post by Day »

Assignment. Assignation means something different.
Thank you. Rotfl'ing after having looked for the meaning.
Perhaps should we introduce a judicial oxp? I'd like to be compensated by all those good for nothing lasering me to death...
No, it is not possible yet.
Ok.

Last question remaining: would it be desirable?
Post Reply