Questions tagged [directinput]

135 questions
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
  • 7
  • 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
  • 3
  • 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
  • 245
  • 2
  • 10
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
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,557
  • 3
  • 22
  • 37
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
  • 30,351
  • 141
  • 365
  • 559
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
  • 187
  • 2
  • 2
  • 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
  • 3,790
  • 10
  • 46
  • 100
-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,…
-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,297
  • 20
  • 76
  • 122
-1
votes
1 answer

Timing out input in win32 C++ Project

I'm trying to figure out the best way to timeout the input if too much time passes between key presses. Should I create a cheatTime float that's incremented by delta every call to update? It's late, I'm tired and my brain is fried. Any help would be…
Josh Lake
  • 457
  • 1
  • 6
  • 16
-1
votes
1 answer

Receiving key states from Direct Input and GetDeviceState() (C++)

I am making a wrapper for keyboard input using Direct Input. To grab the key states, the function GetDeviceState() is called with a char buffer. This is all well and good, but now to send key events I must iterate through the buffer and check…
Samaursa
  • 15,249
  • 20
  • 77
  • 150
-3
votes
1 answer

DirectInput Compile Error (C++)

I'm using Jon Parise's DirectInput wrapper (sorry, lost the URL and can't find it) and am having a problem compiling it. I am using this wrapper to take in input from 3 separate joystick devices and processing the data. Here is the .cpp that is…
P_B
  • 94
  • 6
-5
votes
1 answer

How to easy check if joystick plugged (by c++)

I need to write an easy function that only return bool answer. if there is joystick plugged in the computer - true,else - false. how can i do this? I have tried to write this code, but i only get the num of deviced that plug by usb to my computer, i…
Meitarb12
  • 41
  • 1
  • 4
1 2 3
8
9