BridgesUNCC / bridges-java

JAVA Client library for Bridges
http://bridgesuncc.github.io
GNU General Public License v2.0
4 stars 12 forks source link

game API (input) #178

Closed esaule closed 1 year ago

esaule commented 1 year ago

how Philip's code for robotics worked which is pretty simple but sometimes having a thing to look at speeds along https://github.com/ftc16072/FreightFrenzy21-22/blob/master/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/ftc16072/utils/QQ_Button.java

We should do the java implementation first

The calls would be:

keyUp(); // is the key currently pressed

keyUpJustPressed(); // only for one frame on the frame of the press keyUpStillPressed(); // for all on going frames keyUpJustNotPressed(); // for one frame on the frame of the release keyUpStillNotPressed(); //for all on going frames

keyUpSetupFire(int ); //configure the fireinterface for keyUpFire(); //only once every so many frames (by the setup call)

And then the same for keyDown, keyLeft, ...