Esempio n. 1
0
        public void SetButton(XBButton_t buttonCode, XBTarget_t buttonState)
        {
            Int16 actionKey  = EVA_NewActionKey((Int16)Device_t.XBox, (Int16)buttonState);
            Int16 actionCode = EVA_NewAction((Int16)actionKey, (Int16)buttonCode);

            // 'A'ction <Int16>
            Command('A', ReverseBytes(BitConverter.GetBytes(actionCode)));
        }
Esempio n. 2
0
        public void SetButton(XBButton_t buttonCode, XBTarget_t buttonState)
        {
            Int16 actionKey = EVA_NewActionKey((Int16)Device_t.XBox, (Int16)buttonState);
            Int16 actionCode = EVA_NewAction((Int16)actionKey, (Int16)buttonCode);

            // 'A'ction <Int16>
            Command('A', ReverseBytes(BitConverter.GetBytes(actionCode)));
        }