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
2 answers

XInputGetState and XInputSetState called from different threads

I have a thread that captures controller input. This is the only thing this thread does - it calls XInputGetState() every x milliseconds and stores the result in a synchronized circular buffer. I have another thread that reacts to this input by…
NmdMystery
  • 2,778
  • 3
  • 32
  • 60
1
vote
1 answer

Creating a Thread in C++ with Overload Error

I'm having a bit of trouble creating a thread in C++. When I attempt to create one I get these two errors... error C2661: 'std::thread::thread' : no overloaded function takes 2 arguments error C3867: 'XboxControler::VibreateThread': function call…
Songy
  • 851
  • 4
  • 17
1
vote
2 answers

Use XInput and VB.NET for xbox 360 controller support

I am wondering if anyone might be able to give me a little help with xinput (for and Xbox controller) and vb.net. What I am trying to do is translate the analog stick motions to certain events in my application. Specifically what I am trying to do…
Cody
  • 111
  • 1
  • 3
1
vote
1 answer

XBox 360 controller non-customisable mapping

I would like to make a program that utilises the XBox 360 controller's inputs to give outputs, for example if you press A on the controller, it would be the same as pressing A on the keyboard. I plan to use this for game development and do not want…
1
vote
2 answers

Linux: Xautomation with fake mouse pointer

I have created a fake mouse pointer using the xinput command as outlined here which produces a second pointer that hovers in the center of my screen. I would now like to automate it using the xte command, but unfortunately xte only seems grab…
tetris11
  • 817
  • 2
  • 11
  • 27
1
vote
0 answers

Using Xbox 360 controllers on mac os with unity

Good people of SO, I'm currently working on a game in Unity3D using xbox 360 (wired or not) controllers. I'm searching for some king of "best practice" to achieve Windows and MacOS support for the game. STEP 1 My first approach was to create a full…
Lego
  • 490
  • 1
  • 6
  • 16
1
vote
1 answer

Specs for Microsoft Xinput USB devices (Xbox controllers)?

Has anybody found the specifications for the USB protocol used by the Xbox controllers? All I can find is the API documentation of Microsoft's implementation (Xinput). I'm trying to write a driver for OS X so Xinput controllers will appear as normal…
digory doo
  • 1,978
  • 2
  • 23
  • 37
1
vote
1 answer

Xinput.h: No such file or directory

I'm trying to get input from an xbox controller, I went to this page: http://www.codeproject.com/Articles/26949/Xbox-360-Controller-Input-in-C-with-XInput and I'm just test running his source, good thing I did because it found an…
Zachrip
  • 3,242
  • 1
  • 17
  • 32
1
vote
1 answer

error: ‘BadDevice’ was not declared in this scope

any idea why I would be getting this error?: error: ‘BadDevice’ was not declared in this scope I have included: #include and #include in my class header file. I am using it like this: int ret =…
Jarrett
  • 1,767
  • 25
  • 47
1
vote
3 answers

Releasing all keys after disabling the keyboard in X11/Linux using xinput?

On Linux when using X11/Xorg, when you use xinput to disable they keyboard (e.g. xinput set-prop $ID "Device Enabled" 0) the 'key-up' event is not send (because you've disabled the keyboard). This is noticable if you enter that command on the…
Amandasaurus
  • 58,203
  • 71
  • 188
  • 248
1
vote
1 answer

trouble using grep for xinput property

I'm trying to use grep to parse out a string property on the command line. I'm getting the properties using: jarrett@jarrett-g74s:~$ xinput --list-props "FSPPS/2 Sentelic FingerSensingPad" Device 'FSPPS/2 Sentelic FingerSensingPad': Device…
Jarrett
  • 1,767
  • 25
  • 47
0
votes
3 answers

getRuntime().exec(): not working

I have getRuntime().exec() calls in my program; however, two of them will not work: public static final ROTCW = "xrandr -o left" public static final CALCW1 = "xinput --set-prop 11 \"Evdev Axis Inversion\" 0 1" public static final CALCW2 = "xinput…
werdnanoslen
  • 102
  • 4
  • 7
  • 22
0
votes
0 answers

Disable touch event to specified screen on Ubuntu

I've configured two independent screens on Ubuntu 18.04 according to this. Now I want to confine touch input event on one of screen. xinput map-to-output 10 DP-1 doesn't work! xinput list ⎡ Virtual core pointer id=2 [master…
sfzhang
  • 669
  • 9
  • 18
0
votes
0 answers

`xinput` does not affect mose movement directions on a rotated display

I'm trying to configure display rotation with the xrandr and transform mouse coordinate axis accordingly with the xinput in EndeavourOS with i3-wm v4.22 running on a VirtualBox 7.0.6. While the monitor rotation works perfectly, the transformation of…
0
votes
0 answers

Gamepad input vs mouse input

Why is it that with gamepad input ( xinput and directInput ) windows is able to distinguish input from different devices. ( ie if 2 identical gamepads are connected and you press a button on one it knows which one the button press came from ) Yet…
megaman
  • 1,035
  • 1
  • 14
  • 21