Questions tagged [directinput]
The directinput tag has no summary.
13 questions
0
votes
1
answer
1k
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 ...
2
votes
1
answer
387
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 ...
0
votes
1
answer
257
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
1
answer
1k
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
1
answer
319
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 ...
1
vote
1
answer
519
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
1
answer
616
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
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 ...
1
vote
1
answer
988
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
4
answers
1k
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
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.
...
3
votes
1
answer
2k
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
2
answers
751
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, ...