hi,
i want trigger an action with a key, and launch a reverse action with the same key,
with the code below, first action is triggered but clicking a second time the same key do nothing, so what's wrong i my code ??
Code
<events
onkeydown="action(keydown);"
onkeyup="action(keyup);"
/>
<action name="keydown">
if(keycode == 186, if(key186_pressed != true, hide_map(); set(key186_pressed,true);); );
</action>
<action name="keyup">
if(keycode == 186, show_map(); set(key186_pressed,false); );
</action>
Display More
thanks