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
29
votes
7 answers

How to make a program that finds id's of xinput devices and sets xinput some settings

I have a G700 mouse connected to my computer. The problem with this mouse in Linux (Ubuntu) is that the sensitivity is very high. I also don't like mouse acceleration, so I've made a script that turns this off. The script looks like…
Filip S.
  • 1,514
  • 3
  • 19
  • 40
16
votes
1 answer

Simulate XBox Controller Input with Python

I want my python programm to simulate an XBox controller input. Both analog thumb sticks and the on/off buttons if possible. I found topics about simulating Keyboard input with ctypes in python, for example here: Python simulate keydown Is it…
Herka
  • 677
  • 1
  • 5
  • 14
16
votes
3 answers

Controller support for Xbox one in Windows UWP

I am wondering how I am supposed to handle input for UWP apps targeting Xbox One. I have noticed DirectInput, but I see two issues with it for my use cases: From MSDN, it only seems to support Xbox 360 controllers XInput is an API that allows…
James Parsons
  • 6,097
  • 12
  • 68
  • 108
15
votes
1 answer

Translates the XInput calls to DirectInput calls on MAC OS X (Emulate x360 controller from PS3 one)

There are a lot of games in steam working with x360 controllers but not mapped properly with a PS3 DS3 controller... MotionInJoy do it clean with "emulate 360 controller" but it works only on PC. There is another PC-only project : x360ce :…
AugustinR
  • 159
  • 1
  • 4
9
votes
1 answer

"Seamless" multi user session in linux/X11

The goal I would love to have a multi user system (based on linux) using only one X11 session with multiple screens and pairs of mouse and keyboard. So two (or more) people can work with the same computer sharing not only the same hardware but also…
leemes
  • 44,967
  • 21
  • 135
  • 183
7
votes
1 answer

How do I access the Joystick on windows in a non-deprecated way?

I want to write a Windows application which accesses the joystick. It is just a very simple application which reads the values and sends them to a server, so I am not using any game programming framework. However, I am confused about which API to…
Jonathan
  • 206
  • 1
  • 4
7
votes
1 answer

How to detect gamepad triggers both pushed with USB HID API?

I use RawInput + Windows USB HID API to receive WM_INPUT message when a gamepad button is pressed and retrieve gamepad state. There's a problem: two triggers work on same axis which means you can't figure out if two triggers are pressed at the same…
Juster
  • 732
  • 1
  • 10
  • 26
6
votes
4 answers

Case Sensitivity in C++ Header Files

I'm a complete noob when it comes to C++ and I've been hacking away on Moai trying to add support for an Xbox 360 gamepad via XInput. When I include the header for XInput there are two options: XInput and Xinput Further, in order to use…
NoobsArePeople2
  • 1,986
  • 14
  • 21
6
votes
2 answers

How to get Game Controller name (Windows 10 / C++)

I've seen lots of info on how to read game controller input using XInput but I really want to know the name of the controller that is connected. How can I find out the name of connected controllers on a PC or more specifically the name of the…
PompeyPaul
  • 554
  • 5
  • 11
5
votes
2 answers

Is it possible to get an XInput device's name, product ID, vendor ID or some other kind of unique identifier for it?

Ordinarily XInput controllers are identified simply using an index corresponding to the player number of the controller. Is there a way to obtain more information about a controller with a specific index, such as its vendor ID, product ID, or device…
Bri Bri
  • 2,169
  • 3
  • 19
  • 44
5
votes
2 answers

Enabeling touch events in Chrome from touch screen

I have a Ubuntu machine with a 24" touchscreen and it is working fine. I can move the mouse, do gestures with several touch points and such so the hardware is working fine. Now I wonder if it is possible to make a browser interpret the events as…
user2244067
  • 53
  • 1
  • 5
4
votes
0 answers

Emulate Xbox 360 controller with mobile

I'm developing an app for symbian phones to emulate an Xbox 360 controller. I have made all the necessary connections, and I'm using SendInput() to emulate the mouse, because, AFAIK SendInput can only emulate keyboard and mouse. And I'm thinking of…
4
votes
1 answer

Capturing Keypresses from the Background

I am trying to write a bash script that watches the keyboard for specific key presses, and runs commands when it detects them. I am currently able to do this using the input command, but only if the terminal running it is in the foreground. I need…
Alex Collette
  • 1,664
  • 13
  • 26
3
votes
0 answers

Pygame: Analog trigger initial value is not the neutral trigger position

I'm developing an application that uses pygame to read analog trigger values from an XBox 360-Style gamepad. This application relies on the triggers being initialized to the neutral position, or else it results in undefined behaviour. The problem:…
Prunebutt
  • 31
  • 2
3
votes
1 answer

Which xinput setting will reverse the direction of my mouse's scroll wheel?

I am attempting to follow the advice of this question, using the xinput tool to enable natural scrolling for my mouse's scroll wheel. I list my input devices via $ xinput list and get the following: $ xinput list ⎡ Virtual core pointer …
mherzl
  • 5,624
  • 6
  • 34
  • 75
1
2 3
9 10