Questions tagged [directinput]
139 questions
0
votes
0 answers
Simulating keypress with mouse movement using DirectInput (dinput.dll)
I have been trying to play Omikron: The Nomad Soul, but I found it incredibly difficult to do so without using the mouse. I have been trying to use dinput.dll to simulate keyboard presses using mouse movement, but nothing I tried so far worked. I am…
0
votes
1 answer
Why doesn’t pyautogui and directinput work in video game?
I’m trying to make a bot to play a video game for me, but neither pyautogui or directinput can make the character move in another direction. What is going on? Is there any alternative?

user15190096
- 1
- 1
0
votes
1 answer
C# capture pressed gamepad keys (Direct Input)
How to capture pressed gamepad keys (Direct Input) in C#?
I have searched but most of the sources seem outdated, will there be a simple API that allows me to capture these events?
I am making an app that captures all the keystrokes on a gamepad but…

Oni
- 41
- 8
0
votes
0 answers
Hooking Direct Input
INTRODUCTION
There's this old fullscreen 800x600 or windowed mode online game binary I would like to make a new GUI for, using C++. I haven't got its source code. Same interface yet scaled to occupy most of the screen as fullscreen while avoiding…
0
votes
1 answer
Direct Input command not working while making gamebot
I've been working on automating GTA V with python.
To give inputs, I tried "pyautogui" but it wasn't working as expected. I googled and got this solution on stackoverflow (and thank you, Sentdex!):
Simulate Python keypresses for controlling a…

Parthik B.
- 472
- 1
- 5
- 15
0
votes
0 answers
DirectInput's CreateEffect() causes exception 0xC00000FD with specific hardware/software combinations
I have made a plugin for a game, to add support for alternative input devices for that game, such as steering wheels.
Some of my users have been getting an exception when they try to set-up their wheels for my plugin. This only occurs for those…

ikt
- 3
- 4
0
votes
0 answers
Simulate keystrokes in inactive windows
I'd like to simulate 'real' keystrokes in an inactive window. After some research I found the Windows api. Since Im used to Java, I quickly found JNA, which implements the winapi.
I wrote some code, that could simulate keystrokes in a active window…

bob
- 1
- 2
0
votes
2 answers
Catching "global hotkeys" (Windows)
Now I've been trying to create a similar functionality as there is in Push-To-Talk voice chat applications, but so far I couldn't find any fitting solutions to this. I am not using MFC or CLR.
The problem is quite simple. My window should be usually…

dialer
- 4,348
- 6
- 33
- 56
0
votes
2 answers
DirectInput8Create fails : E_INVALIDARG
I'm using DirectInput with Direct3D 11, and compiling for x64 and I get an E_INVALIDARG from this line:
HRESULT hr = DirectInput8Create(hInstance, DIRECTINPUT_VERSION, IID_IDirectInput8, reinterpret_cast(&this->_d8Input), 0);
When I set a…

dotminic
- 1,135
- 2
- 14
- 28
0
votes
1 answer
DirectInput console application
I'm working in C++ in Windows and I need to deal with an input device with force feedback. I found out that one solution could be to use DirectInput and so I start looking at that.
FIRST QUESTION: any suggestions on other ways for dealing with force…

Valse
- 1
- 3
0
votes
2 answers
Python DirectInput Mouse Relative Moving act not as expected
I found solution to emulate mouse movement by DirectInput. Point is to use python script to navigate character in 3D Game. That means that have to use relative mouse movement.
Everything was working but when i try calculate relationship between x…

Jakub Krajč
- 46
- 1
- 7
0
votes
0 answers
How can I check for sliders on a joystick with SharpDX DirectInput?
I'm working on a multi-joystick setup where I need to build custom button mappings. And even map across devices. For example, if there is a separate joystick and throttle quadrant I need to map 'Z' or whatever, over to the throttle input. I also…

taterfudge
- 1
- 3
0
votes
1 answer
Sending keypresses to a game, it doesn't work for arrow buttons
I'm trying to send keyboard inputs to a game, and after a lot of search I finally found a code that works:
# http://www.gamespp.com/directx/directInputKeyboardScanCodes.html
import ctypes
import time
SendInput = ctypes.windll.user32.SendInput
W =…

ArandomUserNameEG
- 108
- 2
- 9
0
votes
1 answer
SharpDx in Unity3D - Buttons does not work anymore when click other window of editor
As you most probably know, Unity3D have terrible buil-in input system what is unable to change configuration runtime so i decised to write own input system based on SharpDX DirectInput. I know well directInput is not officialy recomendet but i like…

Jacob
- 279
- 3
- 14
0
votes
2 answers
Retrieving keyboard state in C# using DirectInput?
I need to retrieve the keyboard state when a key is pressed on a particular form rather quickly - fast enough that the standard KeyUp/KeyDown events for windows forms are not fast enough. I was told to try out DirectInput, but I have no experience…

Ephemeralis
- 189
- 3
- 17