Beispiel #1
0
        public JoystickAxis(GamepadAxis axis)
        {
            m_axis = axis;

            m_sourceInfo = new SourceInfo(ControlNames.GetName(m_axis), SourceType.Joystick);
        }
        public JoystickButton(GamepadButton button)
        {
            m_button = button;

            m_sourceInfo = new SourceInfo(ControlNames.GetName(m_button), SourceType.Joystick);
        }
Beispiel #3
0
        public KeyButton(KeyCode button)
        {
            m_button = button;

            m_sourceInfo = new SourceInfo(ControlNames.GetName(m_button), SourceType.MouseKeyboard);
        }