Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void Test(Joystick joystick)
- {
- joystick.SetCooperativeLevel(new WindowInteropHelper(Application.Current.MainWindow).Handle, CooperativeLevel.Background | CooperativeLevel.Exclusive);
- joystick.Properties.AxisMode = DeviceAxisMode.Absolute;
- joystick.Properties.AutoCenter = false;
- joystick.Acquire();
- foreach (var deviceObjectInstance in joystick.GetObjects())
- {
- if (deviceObjectInstance.ObjectId.Flags.HasFlag(DeviceObjectTypeFlags.ForceFeedbackActuator))
- {
- }
- }
- }
Add Comment
Please, Sign In to add comment