lasarobotics / FTCLibrary

Generic function and autonomous library for the FTC Android Platform
MIT License
25 stars 14 forks source link

FIRST Native Gamepads in MonkeyC #38

Closed ehsanmasdar closed 8 years ago

ehsanmasdar commented 8 years ago

FIRST Native gamepads in MonkeyC will only use PRESSED/RELEASED states not HELD/NOT_PRESSED states as they should

smo-key commented 8 years ago

@Oksisane Are yiu saying that MonkeyC only registers 2 states, and should be registering all 4?

ehsanmasdar commented 8 years ago

@smo-key It's only registering button presses as the PRESSED/RELEASED states which will cause toggles to behave erratically (these are meant to trigger once on button push after which state is switched to HELD/NOT_PRESSED). Instead, we need to default to HELD/NOT_PRESSED states and ignore the special toggle functionality when reading from FIRST gamepad objects. Also, MonkeyDo needs to respect this and convert back to the true/false boolean for native gamepad objects.