evilC / OneSwitch-Utilities

A set of utilitie to assist disabled people operate computers. In association with OneSwtich.
http://oneswitch.org.uk/
4 stars 0 forks source link

Extra Choice Switch functions #3

Open evilC opened 9 years ago

evilC commented 9 years ago

Barrie:

DOUBLE-TAP TRIGGERS A JOYSTICK BUTTON (24) TREBLE-TAP TRIGGERS A JOYSTICK BUTTON (25) HELD PRESS over a threshold TRIGGERS A JOYSTICK BUTTON (26)

oneswitch commented 9 years ago

This could offer a way to do two things at once within JoyToKey with a single button. With profile shifting, everything is forgotten as soon as you "pulse" to a new profile.

Adding this method could facilitate this kind of thing...

  1. A steering profile is selected. Button 21 ("choice") is to steer left/right. Button 22 ("pulse") does nothing locking you into that profile. Button 23 ("time out") will get you out of this steering profile if you don't press a switch for 30 seconds. Holding the switch for a length of time will pulse joystick button 26 ("accelerate").

With that example, you can start the car moving and steer with a single switch.

evilC commented 9 years ago

So this is a pulse enhancement? Adding stuff like this in addition to #7 could start to get pretty complicated...

Whatever, adding "temporal" hotkeys such as double-presses and holds etc is not particularly trivial.

oneswitch commented 9 years ago

Yes, it would be to enhance Pulse.

The problem I'd like to overcome is allowing a button to stay on (e.g. button 24) whilst allowing the user to Pulse down through other profiles.

In JoyToKey as soon as you change profile, all the buttons and controls are released.

So if I wanted to latch the accelerator on in a car game in a speed control profile, as soon as I move down to the "steering" profile, the accelerator will be released. Maybe if we just focussed on #7 and the possibility of some items there latching on or off that might do the trick. They should be cleared whenever a Timeout event is triggered, to stop things getting messy for the user/help the user recover normal control.

Shall we close this thread and move to #7 ?