The online racing simulator
Turn signal unit as buttons problems
Hey guys,
I'll try to describe what I've got and what problems I occur.

This is E36 turn signal/long lights unit which I made into buttons with SymProjects JC32
controller.



Everything works fine.
I have got 4 different buttons from this -

Left Signal
Right Signal
Long lights constant
Long lights flash

All of buttons register as constant ON while -press and hold- them.

In the game we have got replication as this -

Default, game does not let you change them.
3 - long lights (constant)
7 - left signal
8 - right signal
9 - hazard lights (both on).
0 - turn off signal left/right or both

Optional
G - flash long lights

With a touch I make flash long lights as button. It works great - activation of a button turn on long lights and release of it turns it off.

Now in order to get other buttons to work I use this -


Buttons now do their functions - activates left/right/hazard lights and turns on long lights.
I run into problem here, because release of a button does not turn of whats activated in a game.
In order to get hazard lights off I need to press 0. In order to turn off left/right signal I need to press 0, but I can switch between them. For long lights (constant) I need to push it twice, because second push tells the game to turn it off.



My question is -

How can I get this working?
Can I change buttons from requiring double click as -ON when pressed and hold- ?

Thanks for reply Smile
Hi
interessting project. Smile Not sure if I completly understood the problem:

Quote :I run into problem here, because release of a button does not turn of whats activated in a game.

In every game I played, buttons only 'trigger' when pressed but not when released. There are various keyboard/controller macro programs but not many seemt to have support for 'event-when-released.' This two looks promising maybe?
SVMapper - http://theairtacticalassaultgroup.com/forum/showthread.php?t=10901
hidmacros - http://www.hidmacros.eu/


Quote : In order to turn off left/right signal I need to press 0, but I can switch between them.

You can also script indicators to turn off with the same button that activated them. (So you only need two buttons: left & right)
http://en.lfsmanual.net/wiki/Script_Guide#Indicator_Control
Thanks Smile

Ok, to explain this better -

when you press G (flash long lights) it turns on long lights and when you release G it turns of it.
I need this to work same on left/right turn signal buttons and long lights (constant). (Now I'm thinking, why just not make flash long lights as constant long lights Big grin , lol)

Also, I have hazard lights button. When pressed it turns on both signals (hazard). Second push of button does not do anything. In this case I need same button to turn on and off hazard lights.

Thanks for the links, I'll check it out.

If You liked photos above, You might like this Smile Again, completely wrong thread, but... Smile








Quote from Gutholz :Hi
interessting project. Smile Not sure if I completly understood the problem:

In every game I played, buttons only 'trigger' when pressed but not when released. There are various keyboard/controller macro programs but not many seemt to have support for 'event-when-released.' This two looks promising maybe?
SVMapper - http://theairtacticalassaultgroup.com/forum/showthread.php?t=10901
hidmacros - http://www.hidmacros.eu/


You can also script indicators to turn off with the same button that activated them. (So you only need two buttons: left & right)
http://en.lfsmanual.net/wiki/Script_Guide#Indicator_Control

SVMapper worked like a charm. Now thing is working like in real car. Thanks man, saved me so much time!Smile
LFS Demo V


FGED GREDG RDFGDR GSFDG