Questions tagged [directinput]

139 questions
0
votes
1 answer

Is DirectInput capable of telling WHICH axes are present on a stick?

I am currently writing a .Net DirectInput wrapper DLL to allow event-based reporting of stick input from other languages (I am using AutoHotkey). I currently use SharpDX to read stick data, but SharpDX only seems to report how many axes a stick…
Clive Galway
  • 482
  • 4
  • 13
0
votes
1 answer

Use a USB joystick from C++

In my project I'm using directinput to manage the joysticks attached to the PC and it works, but IMHO directimput is terrible to understand and manage perfectly... Does some other library/method exist to manage the joysticks in C++ in a more pretty…
ghiboz
  • 7,863
  • 21
  • 85
  • 131
0
votes
1 answer

How do i prevent a mouse from sending input to DirectInput game?

This question was originally about how to trap mouse events, which i solved after a lot of research using SetWindowsHookEx with C++. Problem is, its working for me on Windows, it works in applications, but it doesnt work in games. can somebody help…
MarkosDarkin
  • 315
  • 3
  • 20
0
votes
2 answers

DirectInput Unresolved External Symbol

This one is driving me nuts. I've tried everything I can think of. Here are the relevant parts of the DirectInput code. BOOL CALLBACK EnumDevicesCallback(const DIDEVICEINSTANCE* DeviceInfo, VOID* Context); if(DirectInput8Interface == DI_OK) { …
deSTRUCTor
  • 13
  • 1
0
votes
1 answer

OEMDATA registry entry

I write an HID driver. I found out that I need to supply the following entry in order for it to interact with the DirectInput…
Shaul
  • 437
  • 5
  • 17
0
votes
0 answers

How are DirectInput and WinAPI input functions can communicate?

I wrote a simple program, which simulate mouse input by using WinAPI SendInput() function and then test it on the game which use DirectInput to control all input. As result, this program simulate mouse click. But, as I know, DirectInput communicate…
0
votes
0 answers

Programmatically fire windows joystick events?

Problem I want to programmatically throw Windows Joystick move events using c++, but I am unsure how. Someone had mentioned writing my own custom device driver. I've never done anything like that before. Can anyone point me in the right…
Kevvvvyp
  • 1,704
  • 2
  • 18
  • 38
0
votes
1 answer

Function pointer - purpose of argument for DInput8.dll hook code

I have been trying to figure out the purpose of one argument in a DirectInput8 hooking project. I am producing some portion the opensource code here. For the sake of brevity, I am only posting a few functions. ULONG oldCreateDevice; HRESULT WINAPI…
Wajih
  • 793
  • 3
  • 14
  • 31
0
votes
0 answers

Directinput not detecting mouse buttons

I am using DirectInput in my game to handle input and everything was working fine in my previous PC. But I had to change my PC, my new PC is Dell Inspiron 3542 and Directinput is not detecting any mouse buttons in it. Is it possible to solve this…
Talha5389
  • 738
  • 1
  • 9
  • 22
0
votes
0 answers

Using Joystick in Windows Forms application

I've got a problem with my application. I wrote a code that works fine in console, but I need to make a GUI. This application let me control a mouse with joystick. I'm using Direcinput library. It is reading position of joystick and its name. Here…
user3448282
  • 2,629
  • 3
  • 25
  • 47
0
votes
2 answers

'EnumDevices' : is not a member of 'IDirectInput8A'

I'm trying to enumerate Joysticks in DirectInput. unsigned int GetCount() { unsigned int counter; LPDIRECTINPUT8 di; HRESULT hr; counter = 0; di = NULL; if (SUCCEEDED(hr = DirectInput8Create(GetModuleHandle(NULL), …
101010
  • 14,866
  • 30
  • 95
  • 172
0
votes
1 answer

SharpDX.Direct Input in Unity

I've been trying to implement DirectInput into unity using SharpDX.DirectInput dlls, but when i create a joystick, it gives me an error: SharpDXException: HRESULT: [0x80070057], Module: [General], ApiCode: [E_INVALIDARG/Invalid Arguments], Message:…
0
votes
1 answer

programming joystick in DirectInput

I'm writing application to program Joystick using DirectInput and MFC. I have found a script how to do it, but i have a problem. When i want to enumerate devices to find joystick I use right function "EnumDevices" with argument "enumCallback" which…
Tibo
  • 53
  • 2
  • 6
0
votes
1 answer

Equivalent of SetCooperativeLevel in DX 11

I am trying to figure out if SetCooperativeLevel is still available in DX11. If it is no longer supported, what is the new API to get exclusive input from input device? Thanks.
Kenny Lim
  • 1,193
  • 1
  • 11
  • 31
0
votes
1 answer

Exclusive directinput

I am trying to build an application that have exclusive access over a gamepad. Which mean when my application run, no other application will receive or react to the gamepad action like button press, wheel move,... My approach to the present is using…