Questions tagged [directinput]

139 questions
-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
  • 567
  • 1
  • 6
  • 17
-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
  • 16,527
  • 21
  • 89
  • 160
-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
  • 51
  • 1
  • 1
  • 4
1 2 3
9
10