Questions tagged [directinput]
139 questions
1
vote
1 answer
DX11 DirectInput8Create causing LNK2019 error
I'm trying to create a GPU rendered particle system, and it uses this input class to handle mouse/keyboard input.
The issue is the line;
HRESULT result = DirectInput8Create(.....);
causes a LNK2019: Unresolved External Symbol error. I've included…

NeoKuro
- 457
- 1
- 5
- 21
1
vote
1 answer
Sending Mouse Click to DirectX Game Running as Admin
I have been building a gaming-related program that needs to send simulated input to the game (which is the top window on the screen and runs in fullscreen mode). After some struggling, I finally got mouse movements (cursor drag) and keyboard input…

Spencer D
- 3,376
- 2
- 27
- 43
1
vote
0 answers
error Attempted to read or write protected memory, where to look?
I'm getting the following error with unmanaged code in .net 2.0 using the dx 2006 managed references (I can not find anything newer that has a managed code folder).
An unhandled exception of type 'System.AccessViolationException'
occurred in…

user2144480
- 1,083
- 7
- 11
1
vote
1 answer
How do I convert a RawInput RAWKEYBOARD structure to a DirectInput DIK_ constant?
I am converting an application that currently uses DirectInput to use RawInput instead. (DirectInput is a largely deprecated API.)
Unfortunately, despite RawInput being the recommended successor to DirectInput, it doesn't appear to provide keyboard…

Walt D
- 4,491
- 6
- 33
- 43
1
vote
1 answer
Using DirectInput in C# with MonoGame?
I am trying to move on from previous game development languages and have stumbled upon an issue that I took for granted in my old languages. I am trying to support DirectInput in C# with MonoGame as I feel comfortable with C# to use it as my primary…

Jeremy Beare
- 489
- 3
- 8
- 22
1
vote
0 answers
DirectInput8 Hooking Issue
I'm just beginning with directx/directinput development and I'm running some tests with some code samples I've found online. Anyway, I want to hook an application that uses dinput8 to send my own custom input to the forewindow and I'm working with…

glover12
- 41
- 6
1
vote
2 answers
cant find joystick guid using sharpDX directinput
i'm trying to use a ps3 controller for a game i'm creating. I downloaded the sharpDX.DirectInput extension into my visual studio XNA solution, and used the seemingly simple code from Valdemar's answer in Taking input from a joystick with C# .NET. I…

J.Somers
- 49
- 6
1
vote
1 answer
Problems sending keystroke to DirectX application using SendInput wrapper
I've been trying to send key presses to a DirectX application for a little while now, and keep striking out. I'm new to C#, so some of the more complicated functions go right over my head, but I've been trying to piece it together best I…

Patrick
- 430
- 6
- 21
1
vote
1 answer
Java Virtual Gamepad
Problem
I am developing a custom hardware controller and I would like to map its input to an virtual XInput controller after processecing it in Java. Essentially for all intents and purposes, I want to controll an XInput controller directly from…

Philip Borgström
- 146
- 1
- 8
1
vote
0 answers
How to occupy a HID device exclusively from even Window manager in Window system
Sorry, I am a newbie in window technical.
I am fine in reading input data from device by RawInput or DirectInput now.
But, I concern about:
I want a service (be called X ) can read data from Gamepad(Both ForeGround and BackGround state). Can X…

lannv
- 11
- 2
1
vote
1 answer
DirectInput PS3 Controller
I am working with DirectInput to access Gamepads/Joysticks as Input Devices for several applications. Most of the Joysticks are recognized and the sent data can be accessed by DirectInput, except when I'm using my PS3 Controlelr (no, the controller…

Bergi
- 11
- 4
1
vote
1 answer
C++ Directx mouse input acting weird after focus lost
Hello I've a small problem with my mouse input after I lose window focus (alt+tab / windows key).
After the focus is back to the game window, the mouse (yaw) is acting slow and not responsive (the pitch is working fine for some reason). Sometimes it…

Duckdoom5
- 716
- 7
- 27
1
vote
0 answers
Receiving keyboard notifications from DirectInput (C#)
Edit: It seems I found the reason myself. I had just forgot to acquire the keyboard device before starting the thread. Luckily this was an easy problem. After adding kbd.Acquire(); before the thread call, the code started to work.
Will of course…

user3710150
- 11
- 3
1
vote
1 answer
Setting/Getting my absolute mouse position in windowed mode
I searched, but most posts are just telling me what I already have, so below is basically my code right now:
DIKeyboard->Acquire();
DIMouse->Acquire();
DIMouse->GetDeviceState(sizeof(DIMOUSESTATE),…

user1539405
- 111
- 1
- 14
1
vote
1 answer
Game Update in C++ (Threads or Timer)?
Recently I'm trying to create a Game by myself, and now I run into one question...
I want to render my Game at 60 times per second, and that's good, but then I use Directinput8 to get my keyboard and mouse set up, And I Debug my Game...
I found my…

Dean
- 37
- 2
- 6