Questions tagged [directinput]

139 questions
1
vote
0 answers

DirectInput, multiple joysticks, multiple users

My situation is that I have multiple joystick input devices, from the same manufacturer. The idea is that you set them up once, and then any user could log in and play without having to set them up again. The problem is how to uniquely identify…
obermeister
  • 89
  • 1
  • 8
1
vote
2 answers

What is the difference between reading keyboard input asynchronously and using DirectInput?

DirectInput requires a lot of initialization functions and cetera to detect keyboard input, so what benefits are there to using it rather than the GetAsyncKeyState() function?
user98188
1
vote
1 answer

Modifying camera location based on keypress

I have an application which renders graphics onscreen using DirectX. The default view of first person is set using the below code, setting the Y axis to 0. The code is contained within the SetupCamera() function which is called prior to Render(). …
user1780123
1
vote
0 answers

Ctrl+Alt+Del and DirectInput

I am using DirectInput in C++ to acquire the mouse and keyboard for my program. This works fine and I re-acquire if I get the InputLost error. However, when I press Ctrl+Alt+Del my program gets E_ACCESSDENIED when attempting to acquire, even when…
user1539405
  • 111
  • 1
  • 14
1
vote
3 answers

DirectInput analogue joystick range

I use DirectInput to handle input devices, I enumerate devices and elements on each device. When using the analogue sticks on my game pad, they report values in the range 0-65535. Is this always the case for all types of absolute axis? If not: is…
Jonas Byström
  • 25,316
  • 23
  • 100
  • 147
0
votes
2 answers

Error Message when Referencing .dll Files

I would like the use DirectInput in my XNA game however I'm having an issue when it comes to referencing the .dll file. I'm using Microsoft Visual Studio C# Express Edition. This is exactly what I do: right click "References" chose "add…
MrSplosion
  • 183
  • 1
  • 3
  • 10
0
votes
1 answer

Direct Input in C#

Hi guys im wanting to use direct input in my c# program so that I can interface with certain game controllers, however i've looked high and low and cant seem to find the Microsoft.DirectX.DirectInput.dll Can anyone link me to what package its…
Mike
  • 146
  • 7
0
votes
0 answers

Make python simulated keypress work with remapped key in Windows

I have recently installed SharpKeys. It allows to remap keys in Windows. For example, if I use any type of key simulation in python: pydirectinput.press('f12')//I had already mapped f12 in sharpkeys to other key's functionality It just clicks f12,…
zinkq
  • 1
  • 1
0
votes
0 answers

Gamepad input vs mouse input

Why is it that with gamepad input ( xinput and directInput ) windows is able to distinguish input from different devices. ( ie if 2 identical gamepads are connected and you press a button on one it knows which one the button press came from ) Yet…
megaman
  • 1,035
  • 1
  • 14
  • 21
0
votes
1 answer

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 there any way to bypass that limit: In Unity, e.g.…
SurDno
  • 31
  • 1
  • 4
0
votes
0 answers

Idea to send keystroke, click into an inactive or not focused window game w/o activating it by using read and write memory

I've dug into this topic for the past few days and all I got not working at all (it works in Notepad but in my case it's not). The SendMessage, PostMessage or SendInput function only work when I active the game window. So, this is not the behavior…
0
votes
0 answers

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.DirectInput; namespace Input { class Controller …
erwfvsdcs
  • 1
  • 1
0
votes
0 answers

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 because pyautogui does not work in-game, and…
0
votes
0 answers

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 know the duration) I do…
ghiboz
  • 7,863
  • 21
  • 85
  • 131
0
votes
1 answer

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 rgb_butoons[] array holds the buttons info, and that lX…
Lucas
  • 329
  • 1
  • 8