Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [directinput]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
688 views

Force Feedback on joystick device using SharpDX DirectInput API

The Goal (for context) Get input from a USB joystick device in the Unity Game Engine and activate Force Feedback functionality on the joystick from Unity. The Method I am using the SharpDX.DirectInput ...
Ben's user avatar
  • 111
2 votes
1 answer
250 views

How to get Unity InputSystem to use OpenXInput or at least DirectInput for XInput controllers?

I want to workaround the XInput disadvantage of having just four controllers. I have found out about OpenXInput and compiled it, but I’ve got no idea how to force Unity to use the new DLL, since I did ...
SurDno's user avatar
  • 41
0 votes
1 answer
202 views

Why do I get an access violation exception when enumerating joysticks using DirectInput?

Good morning, I'd like to write an application that uses game controllers and I decided to use DirectInput. The problem is that I get an "access violation execution" (when I run the program inside ...
Itsbananas's user avatar
1 vote
1 answer
900 views

Vibration/Rumble with PS4 Pad and LPDIRECTINPUTDEVICE8

I actually try to make my PS4 Pad rumble. I get the pad capabilities with ...
Zeldarck's user avatar
3 votes
1 answer
233 views

How to identify individual keyboard keys across devices from different locales

I'm trying to make a UI system that adapts images for key binding depending on the keyboard type (azerty/qwerty/etc). For the moment I've done the binding with DirectInput Key Codes so it does not ...
Zeldarck's user avatar
1 vote
1 answer
414 views

RawInput -- Getting the system default mouse and keyboard

I'm using RawInput for device management, in a project that I have been working on for some time. It works great, really, but... After some hardware changes on my development system, including the ...
ROGRat's user avatar
  • 114
0 votes
1 answer
525 views

SharpDX DirectInput Force feedback actuators are missing

I am using a simple code to read input from a DirectInput device. I would like to add force feedback to the device, however when I run this test, I cannot find any ForceFeedbackActuator, however my ...
Csutorasa's user avatar
1 vote
2 answers
2k views

How to rotate camera using mouse?

I'm looking for a basic example of rotating camera using the mouse. the only problem is I'm not sure of how to rotating the camera around it target. should i do this by an algorithm or is there a ...
SukottoSama's user avatar
1 vote
1 answer
823 views

Making DirectInput and XInput work together

I have working wrappers for Xinput and DirectInput in my game, but I had problems with xbox controllers, because they are also recognized as generic controllers by directinput. I have found out that ...
János Turánszki's user avatar
2 votes
4 answers
931 views

Is IDirectInput8::FindDevice totally broken on Windows 7?

I'm developing on Windows 7, and using DirectInput8 for my input needs. I'm tracking gamepad additions and removals (that is, GUID_DEVINTERFACE_HID devices) using ...
untitled8468927's user avatar
0 votes
2 answers
4k views

SharpDx how to detect if Mouse Button is pressed?

I'm wondering how it's possible to detect if a mousebutton is pressed or released. ...
Rey's user avatar
  • 1
3 votes
1 answer
1k views

Gamepad thumbsticks active range

for my current project I use gamepad. I was successfull in hooking it up in C# through SlimDX. Everything works fine, only problem is that thumbsticks don't fully use the active range. If I move ...
jnovacho's user avatar
  • 133
2 votes
2 answers
676 views

How is the result returned in SharpDX.DirectInput.Device.Acquire()?

The documentation of IDirectInputDevice8::Acquire says: Return Value If the method succeeds, the return value is DI_OK, ...
Panda Pajama's user avatar
  • 13.4k