Questions tagged [xinput]

XInput is an API that allows applications to receive input from the Xbox 360 Controller for Windows. Controller rumble effects and voice input and output are supported.

XInput, an API for "next generation" controllers, was introduced in December 2005 alongside the launch of the Xbox 360. This instruction set provided full support for Xbox 360 controllers in Windows XP SP1 and subsequent operating systems, and is described by Microsoft as being easier to program for and requiring less setup than DirectInput. XInput is compatible with DirectX version 9 and later.

Additional reading:

Wikipedia

Microsoft MSDN Introduction

142 questions
1
vote
0 answers

Visual Studio 2015 + XInput + XP toolset

I have a Visual Studio 2015 solution that uses Input: XInput9_1_0.lib is added to the linker dependencies and everything works fine when using the default toolset (v140). In order to allow my code to run on XP I chnaged the toolset to v140_xp. Now…
HornetMaX
  • 43
  • 5
1
vote
1 answer

How to learn xInput and gesture programming in Linux (GTK+)

Ramble: I have been goggling for the past ~week trying to get information on tablet programming for Linux. I am currently a student tasked with making a tablet application (mobile but tablet is the preferred device). I am allowed to program with…
Colton
  • 645
  • 4
  • 24
1
vote
1 answer

Xbox Controller both thumb sticks not changing value, using Xinput

I am using the Xinput API, but I am having trouble with the following bit of code. My assumption is that the definition of R/LX and R/LY, should dynamically change as its called again and again, but the value for the position of the thumb stick is…
Zotto
  • 73
  • 1
  • 2
  • 9
1
vote
0 answers

Why XInput can't work in X-treminal?

I try show keyboard event by app xinput. I trying at three workstation. At first two workstaion (in local X-session) is all good: Get device list: $ xinput ⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave…
Xintrea
  • 388
  • 3
  • 12
1
vote
2 answers

C# | SharpDX.XInput | How to detect if a button on the controller was pressed once and is not getting hold down

Lately i tried creating a XBOX 360 Controller Driver. I need to detect if a button is pressed or held down. So if you hold down it also calls a specific function once just as if u would press the button once. Here is my code (i found this solution…
Jan1902
  • 193
  • 1
  • 16
1
vote
1 answer

How to get raw mouse events with XI2 extension?

I'm using XISelectEvents for root window with deviceid=XIAllDevices and mask=XI_RawMotion, but I don't get any events. What's wrong?
Mad Fish
  • 703
  • 1
  • 8
  • 12
1
vote
1 answer

systemd service for disabling device wont start

I wrote script for disabling finger touch for my notebook lenovo x230 tablet. I want to run it at startup so i used systemd service for triggering this script at start, but however i am unable to start this script even manually. Any help…
M.Puk
  • 762
  • 9
  • 25
1
vote
0 answers

How to receive XInput gamepad state on unfocused window?

Scenario: I have written some basic controlling programm for my quadcopter. Basically, I use a notebook with a gamepad connected to it to send commands to my quadcopter, both are connected to each other via radio. This setups works suprisingly well,…
luksen
  • 67
  • 5
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…
1
vote
1 answer

C# + SlimDX / XInput - how to poll when button is pressed?

I need to interface with Xbox 360 controllers and my limited knowledge leaves me stuck with C#. I don't want to use XNA (and require users to have it installed) for this simple thing, so I'm using SlimDX to allow me to interface with XInput. I have…
TrojanNemo
  • 117
  • 9
1
vote
2 answers

Map XInput2 devices to sysfs nodes

How can I turn an XInput2 device, e.g. as reported by XIQueryDevice, into an appropriate sysfs node? The device is a generic HID device, handled by the evdev input driver. I know I can get the name of the device. I might be able to look at the…
MvG
  • 57,380
  • 22
  • 148
  • 276
1
vote
0 answers

Dynamic change of mouse sensivity in Counter-Strike GO on linux

I tried to implement mouse sensivity toggling by some button in Counter-Strike GO on linux so that sensitivity will change when the button is pressed and sensivity will return to the normal when the button is released. I tried to do that with xinput…
1
vote
1 answer

Which event to listen for during XInput events

Th Windows event loop typically looks like: LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { int wmId, wmEvent; PAINTSTRUCT ps; HDC hdc; switch (message) { case WM_COMMAND: wmId =…
James Parsons
  • 6,097
  • 12
  • 68
  • 108
1
vote
1 answer

Injecting to a DX game and make game idle

I have a DLL that I am injecting to DX games. In the DLL, I am disabling XInput, raw input and also subclass WndProc to filter a bunch of input messages like WM_MOUSEMOVE, WM_LBUTTONDOWN, WM_INPUT etc. Disabling XInput with XInputEnable(FALSE) and…
Kenny Lim
  • 1,193
  • 1
  • 11
  • 31
1
vote
1 answer

converting xinput coordinates to a square

i'm working on a small c# program that uses xinput to read the xbox 360 thumb stick. i have no problem with reading the coordinates and normalizing the values so i get a float between -1 and +1 for X and Y directions. the problem i have is that the…
T J
  • 110
  • 6