Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 21, 2008, 6:26:15 PM (17 years ago)
Author:
rgrieder
Message:
  • added scroll wheel support
  • improved mouse input handling
  • added support for mouse input derivation (allows to use the track stick like a joy stick)

About the new key binder in general:
You can assign any button/key/axis any combination of command strings the way you want.
When using simple commands (shortcuts) without parameters depending on the input, there are 3 keybind modes: OnPress, OnRelease and OnHold. For the case you assign such a command to a mouse/joystick axis, the input is translated to switch-like behavior (can be configured by feeding ButtonThreshold argument as ONE key binding).
With parameter controlled commands, keys are simply 1 or 0, axis are of course continuous. There are two ways a command can expect a value: relative or absolute input. For instance the joystick axis state (-1 to 1) is an absolute value, mouse movement is relative. Once again, everything is translated in the right way.
There's a lot more to explain, but I guess I'm gonna write a wiki page for that…

one last note: I haven't yet changed the way input is handled in the space ship. I shall do that after the merge tomorrow.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/input/bin/keybindings.ini

    r1340 r1344  
    154154MouseButton6=
    155155MouseButton7=
    156 MouseXPos=exit | ButtonThreshold 0.85
     156MouseWheel1Up=AxisAmp 0.1 slomo
     157MouseWheel1Down=AxisAmp 0.1 slomo
     158MouseWheel2Up=
     159MouseWheel2Down=
     160MouseXPos= #exit | ButtonThreshold 0.85
    157161MouseXNeg=
    158162MouseYPos=
    159163MouseYNeg=
    160 MouseWheel1Pos=
    161 MouseWheel1Neg=
    162 MouseWheel2Pos=
    163 MouseWheel2Neg=
     164Empty1Pos=
     165Empty1Neg=
     166Empty2Pos=
     167Empty2Neg=
    164168JoyAxis1Pos=
    165169JoyAxis1Neg=
Note: See TracChangeset for help on using the changeset viewer.