TeamCode/src/main/java/org/firstinspires/ftc/teamcode/DRSS_gampad_event_rig.java
/**
         * Update the gamepad based on a KeyEvent
         * @param event key event
         */
Update the gamepad based on a KeyEvent
@param event key event
Update the gamepad based on a KeyEvent @param event key event
public void update(android.view.KeyEvent event) {
            id = event.getDeviceId();
            timestamp = event.getEventTime();
            int key = event.getKeyCode();
            if (key == KeyEvent.KEYCODE_BUTTON_A && event.getAction()== KeyEvent.ACTION_UP){
                pushRodControl(0.5);
            }
            callCallback();
        }
public void update ( android . view . KeyEvent event ) { id = event . getDeviceId ( ) ; timestamp = event . getEventTime ( ) ; int key = event . getKeyCode ( ) ; if ( key == KeyEvent . KEYCODE_BUTTON_A && event . getAction ( ) == KeyEvent . ACTION_UP ) { pushRodControl ( 0.5 ) ; } callCallback ( ) ; }
Update the gamepad based on a KeyEvent
 @param event key event
Update the gamepad based on a KeyEvent @param event key event