Community Forum

Releasing the button

Forum Overview >> Farming Simulator 2011

CategoryFarming Simulator 2011
Created03.02.2011 10:09


Pavel (unknown) 03.02.2011 10:12
How i can know when gamer released the button?

Sven Köhler (sven18koehler) 03.02.2011 10:34
InputBinding.isPressed();

Sven

Pavel (unknown) 03.02.2011 10:54
I mean this
http://i068.radikal.ru/1102/40/fb271d103e34.png

Sven Köhler (sven18koehler) 03.02.2011 10:56
What´s the Problem?

local isMyButtonReleased = true;
if InputBinding.isPressed() then
isMyButtonReleased = false;
end;

if isMyButtonReleased and not myEventDone() then
self:doneMyEvent();
end;

Sven

Pavel (unknown) 03.02.2011 11:38
Thanks for idea! :)


Note: Log in to post. Create a new account here.