Questions tagged [directinput]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
50 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 ...
1
vote
1answer
500 views

Vibration/Rumble with PS4 Pad and LPDIRECTINPUTDEVICE8

I actually try to make my PS4 Pad rumble. I get the pad capabilities with ...
3
votes
1answer
96 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 ...
0
votes
1answer
155 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 ...
0
votes
1answer
217 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 ...
1
vote
2answers
916 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 ...
1
vote
1answer
562 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 ...
2
votes
4answers
715 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 ...
0
votes
2answers
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. ...
3
votes
1answer
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 ...
2
votes
2answers
499 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, ...