예제 #1
0
        private void _PollTimer_Tick(object sender, EventArgs e)
        {
            _SelectedDevice.Poll();

            _UpdateDeviceButtons(_SelectedDevice.Buttons);

            _UpdateThumbSticks(_SelectedDevice.ThumbSticks);

            _UpdateDPads(_SelectedDevice.DPads);
        }
예제 #2
0
 public static void UpdateDirectInputDevice(DirectInputGamepad device)
 {
     device.Poll();
     device.Buttons.Refresh();
     device.ThumbSticks.Refresh();
 }