code: 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;
          }
      }
docs: Gets the transformed axis number of the current event in the buffer
  provided.
  
  @param buffer A LinuxEventBuffer containing a raw event line
  @return an axis number (e.g. Input.ABS_X)