Longpress event fires also shortpress?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
gf7kp
New user
Posts: 4
Joined: 12 Dec 2021, 00:22

Longpress event fires also shortpress?

#1 Post by gf7kp » 07 Jan 2022, 23:46

Hello!

If my Switch is shortpressed I want to fire event 2 and event 1 when longpressed

On TorRunter#Switch do
if %eventvalue% = 11
event,EVENT_TOR_LUEFTUNG
elseif %eventvalue% = 1
event,EVENT_TOR_RUNTER
endif
endon

shortpressed works fine.
But longpress fires EVENT_TOR_RUNTER and event EVENT_TOR_LUEFTUNG

Code: Select all

185527: EVENT: TorRunter#Switch=1
185568: ACT : event,EVENT_TOR_RUNTER
185570: EVENT: EVENT_TOR_RUNTER
...
186036: EVENT: TorRunter#Switch=11
186068: ACT : event,EVENT_TOR_LUEFTUNG
186071: EVENT: EVENT_TOR_LUEFTUNG
Is this a bug or what do I have to change? Any ideas?
Thank you!

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 4 guests