139 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
52
views
Unable to debug direct Input modules, dinput.lib/dll
I'm working on a Direct Input Blueprint function library for ue5 (For a number of reasons not relevant, I need to avoid the enhanced input modality of ue5). I've encountered an issue with the ...
0
votes
0
answers
188
views
How do I send keyboard input to a DirectX9 game using SendInput in Delphi?
I found this answer saying the following:
You can use the unmanaged SendInput function for this. It posts the input on a level lower then DirectInput. It is very important to know what keycodes to ...
0
votes
1
answer
85
views
Python uses pydirectinput how to stop at any time?
I used CV2 for template matching, get two coordinates, use pydirectinput to control one of the coordinates to move towards the other coordinates, the speed of its movement is not fixed, so it is ...
0
votes
0
answers
61
views
Any way to use Xbox Controller without timer in Wpf
I am using SharpDX.XInput in order to detect controller and get information from it.
I basically use timer and check the state of my controller in each tick.
The problem is that it is not consistent ...
4
votes
0
answers
837
views
When enumerating devices using DirectInput, is there a way to get a device's full instance ID?
I'm the author of an open source tool (devreorder) that allows users to specify a stable order for their DirectInput devices. In order for it to work, I need to be able to consistently distinguish ...
0
votes
1
answer
328
views
Any way to use more than 4 XBox controllers in Unity?
Currently I am using InputSystem and am running into XInput’s hardcoded limit of 4 controllers. I’m looking for any ways to bypass that, e.g. by making my XBox controllers use DirectInput API.
Is ...
0
votes
0
answers
202
views
Program hangs/freezes when DirectInput GetDevices() is called C#
Trying to get Joystick input with DirectX DirectInput but the program seems to hang/freeze
without any errors on Manager.GetDevices().
Here is the simple code:
// C#
using Microsoft.DirectX....
0
votes
0
answers
136
views
An IF statement is supposed to choose a direction if a character is uppercase, but it doesn't
I am currently trying to write a part of a script that will write a message to people on a games server to let them know that I am AFK.
I am using pydirectinput over pyautogui for this instance ...
1
vote
1
answer
1k
views
How to control the perspective of a unity game using python?
I want to simulate mouse movement through Python, so that the perspective of the Unity game rotates accordingly.
I used pydirectinput.moveTo() to move mouse. Used pydirectinput.keyDown() and ...
0
votes
0
answers
89
views
Directinput start effect with duration
I got this issue:
when I create my periodic effect I set
jsInfo.periodic[p].effect.dwDuration = INFINITE;
'cause I don't know what will be the duration...
after, when I need to play the effect (and I ...
0
votes
1
answer
338
views
How do i access joystick digital pad in DirectInput8?
Have been looking and searching and i cannot find how to access Joystick D-Pad in Dinput8.
We have the DIJOYSTATE2 structure where it gets its info, but don't know what to choose.
I know that ...
0
votes
0
answers
263
views
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 ...
0
votes
1
answer
643
views
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?
1
vote
0
answers
2k
views
pydirectinput not moving mouse consistantly
I play this game that i would like to automate which requires little mouse movement as well as some keyboard inputs. While the code works(most of the time), sometimes it dosnt move the mouse all the ...
2
votes
1
answer
194
views
Trouble printing DIDEVICEINSTANCE tszProductName to Windows Console
I've been following a DirectInput tutorial and am having trouble printing a list of DirectInput device product names to a Windows console.
I'm using VS19's C++ compiler and am compiling with UNICODE ...