Exemplo n.º 1
0
        public KeyAxis(KeyCode negative, KeyCode positive)
        {
            m_negative = negative;
            m_positive = positive;

            m_sourceInfo = new SourceInfo(ControlNames.GetName(m_positive) + "-" + ControlNames.GetName(m_negative), SourceType.MouseKeyboard);
        }
Exemplo n.º 2
0
        public MouseAxis(Axis axis, float threshold = 0)
        {
            m_axis      = axis;
            m_threshold = threshold;

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

            m_sourceInfo = new SourceInfo(ControlNames.GetName(m_button), SourceType.Joystick);
        }
Exemplo n.º 4
0
        public JoystickAxis(GamepadAxis axis)
        {
            m_axis = axis;

            m_sourceInfo = new SourceInfo(ControlNames.GetName(m_axis), SourceType.Joystick);
        }
Exemplo n.º 5
0
        public KeyButton(KeyCode button)
        {
            m_button = button;

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