Programming Question Adding new functions and keys/joy buttons? to keymap.cfg

guitarist473

The UMMU that can play guitar
Joined
Feb 1, 2009
Messages
196
Reaction score
0
Points
0
Location
Long Eaton, Nottinghamshire England
Hello,

Im installing some hardware for my simpit i am building and ive come across this problem...

I need to map a certain key/function to a button on the hardware (in this instance, a joystick with 13 buttons)

Long story short...
Is it possible to add functions to the keymap, like the gear function but instead for hover doors or retro doors, and is it possible instead of mapping these to a keyboard instead to map them to a joystick?

Origional post (deleted that one and put it here because it was in an inapropriate place for the problem...
Vessel Command Mapping?

I was wondering about this since the controllers im getting have a total sum of about 200 buttons :uhh: How would i go about mapping these buttons to functions in orbiter vessels, for example: button 4 on the throttle quadrent would be Hover door toggle, But as far as i know, no key function is assigned to the hover doors in orbiter...

So how would i do this with a piece of hardware such as a throttle quadrent with multiple buttons?

Oh! and i would like to add some functions to my keyboard that arent already mapped too, ones that arent inportant enough to be on the Hardware but are still needed, how would i do this too?

I have tried programs like AutoHotkey and got them to work to a certain extent... but its too laggy once in the orbiter simulation and needs too much scripting.

So i was wondering if its possible to do with just editing the orbiter default Keymap config?

Thanks

Guitarist473 :cheers:
 
Last edited:
Use Joy2Key to convert joystick buttons to keypresses.

With the XR series of vessels you may be able to write something that would interact with the XRVesselCtrl API to do things like open hover doors if there's no key command for that. Otherwise, if there's no key command, you can't access it.

Keep in mind that things like hover doors aren't common across all ships--the addon developer can choose whatever key they want for that function.
 
So does the DGIV by any chance have a key for opening the doors so i can 'joy2key' them? and would...
...write something that would interact with the XRVesselCtrl API to do things like open hover doors...
Require programming skill? because i have none at all :(

Thanks for the reply

Guitarist473
 
FWIW, the XRs' hover doors are toggled with CTRL-V.
 
I was just trying to find what button toggles the doors in the XR.
Thanks dbeachy! :thumbup: :cheers:

Turns out most if not all functions of the XR are keyboard shortcutted and should be easy to configure to my hardware.

I dont really see anyways round the DGIV though, it appears to have little Shortcut's to its Functions such as hover doors etc... :(
 
Last edited:
Back
Top