コード例 #1
0
ファイル: XBoxController_v100.cs プロジェクト: yeti5/pg3b
        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)));
        }
コード例 #2
0
ファイル: XBoxController_v100.cs プロジェクト: LukaJCB/pg3b
        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)));
        }