private bool HandleJoystickAxisScan(ScanResult result) { // The axis is negative when the timeout has been reached or the scan has been canceled if (result.joystickAxis >= 0) { m_axisConfig.SetAnalogAxis(m_joystick, result.joystickAxis); } m_image.overrideSprite = m_normalState; m_keyDescription.text = m_axisNames[m_axisConfig.axis]; return(true); }
private bool HandleJoystickAxisScan(ScanResult result) { // The axis is negative when the timeout has been reached or the scan has been canceled if (result.joystickAxis >= 0) { _axisConfig.SetAnalogAxis(_joystick, result.joystickAxis); } _image.color = _normalState; _keyDescription.text = _axisNames[_axisConfig.axis]; return(true); }