int getAxis ( LinuxEventBuffer buffer ) { int axis = buffer . getEventCode ( ) ; if ( flipXY ) { switch ( axis ) { case LinuxInput . ABS_X : return LinuxInput . ABS_Y ; case LinuxInput . ABS_Y : return LinuxInput . ABS_X ; case LinuxInput . ABS_MT_POSITION_X : return LinuxInput . ABS_MT_POSITION_Y ; case LinuxInput . ABS_MT_POSITION_Y : return LinuxInput . ABS_MT_POSITION_X ; default : return axis ; } } else { return axis ; } }
Gets the transformed axis number of the current event in the buffer provided .