Questions tagged [directinput]
139 questions
0
votes
0 answers
Initializing Direct Input as many times as you want
The code below is using SlimDx.dll for initializing Direct input libraries. I can only use it ONE TIME is each run, For example there is a button which use this code, I want to initializing direct input as many times as I click on this button but it…

Inside Man
- 4,194
- 12
- 59
- 119
0
votes
1 answer
Handling keyboard input using windows messages and directx 9
I've read everywhere that using windows messages is preferable to DirectInput. Despite this, there are many DirectInput tutorials and barely any for dealing with keyboard in Windows messaging. After not finding any good sources, I began to try it on…

user3046916
- 51
- 5
0
votes
1 answer
DirectInput SetDataFormat error
I want to write a program interacting with joystick. I am using a standard SDK example and dinput8.lib.
Here's the code. GUID Is taken from enumJoysticksCallback function. I throw away everything to minimise chance of error.
LPDIRECTINPUT8 …

PickRelated
- 76
- 4
0
votes
2 answers
How could I pass input into a website without focus?
I'm thinking about making a website that would end up being open in the background (or on a second screen) while someone is playing a video game. How could I pass a bounded key input to the website even though the browser is not currently focused? …

Hershizer33
- 1,206
- 2
- 23
- 46
0
votes
1 answer
c++ DirectInput sample retrieves immediate data from joypad
I am trying to send, via a client-server application, the codes of a joypad. Having succeeded displaying joypad data, using DirectInput API, i can't figure out in which variables the data from the joypad, are stored, in order to pass them in a…

dempap
- 352
- 1
- 9
- 21
0
votes
2 answers
DirectInput Keybindings not firing
I am using this website to learn DirectX: http://www.rastertek.com/tutdx10.html I am trying to use their DirectInput tutorial to add more keybindings besides Escape. However, I cannot get my keys to fire. Here is the relevant…

Charsmud
- 183
- 1
- 4
- 19
0
votes
0 answers
Detecting keyboard hotkeys when DirectInput DIK constants fail
I want to assign tasks and functions to the additional keys of my keyboard (e.g. Mute,VolumeChange, Browser,...). Now, I do know that DirectInput implements a full list of those keys like DIK_MUTE (msdn link). Unluckily, none of the keys are…

BeschBesch
- 373
- 2
- 11
0
votes
0 answers
LoadLibrary causes an access violation
I'm trying to create a proxy dinput8.dll to allow keyboard remapping in a game, and have pieced together some instructions etc to come up with the following :
#include
#include
#pragma pack(1)
HINSTANCE hLThis = 0;
HINSTANCE…

danbo
- 1
- 1
- 1
0
votes
1 answer
DirectX / Windows: Unable to focus on task manager when force-closing application
This question might show a fundamental misunderstanding of DirectX programming in Windows, but I'm having a bit of an issue I can't figure out. My program, when running in full screen, sometimes gets in a weird state and I have to force close the…

8bitcartridge
- 1,629
- 6
- 25
- 38
0
votes
1 answer
DirectX DirectInput C# measure audio input
C# 2008 SP3
I have developed a softphone and our client would like to have a feature that would test if the microphone is working.
I was thinking to have a progress bar that would go up and down based on the nose level.
I have done a bit of research…

ant2009
- 27,094
- 154
- 411
- 609
0
votes
1 answer
Post message for direct input
I want to simulate a mouse click in a video game that is minimized.
The video game I am doing this for allows macroing like this, so it's all good.
However, the game uses direct input so using PostMessage and SendMessage is not working.
kevin
0
votes
1 answer
How can I use DirectInput to create a chat box in my game?
The only solution I can think of is to check which character is being pressed and then display that character on the screen. However, this strikes me as really tiresome and a generally poor solution. I can't think of another solution though. I…

David
- 207
- 2
- 3
- 9
-1
votes
1 answer
Calling an API Function from DINPUT.Dll Using Delphi Or Pascal
I have a program which uses an API from dinput.dll (Direct Input), I have monitored it and the result is this:
API Name: DirectInputCreateEx
Module Name: C:\Windows\system32\DINPUT.dll
And about another program which uses Direct Input:
API Name:…

Inside Man
- 4,194
- 12
- 59
- 119
-1
votes
2 answers
DirectInput key codes - hex string to short
I have a 2D array containing all letters and their DirectInput key code:
string[,] DXKeyCodes = new string[,]
{
{"a","0x1E"},
{"b","0x30"},
...
};
Then I have a functions that returns from the array the hex key code based on the letter,…

MadeByVince
- 85
- 8
-1
votes
1 answer
directinput dll problem
I'm developing an app in c# that uses directinput...
in my dev pc, that there's installed directx sdk everything works fine...
but in another pc that have only directx client installed, the app didn't work..
I added into the folder the dll:…

ghiboz
- 7,863
- 21
- 85
- 131