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

How can I write xbox controller inputs over a usb with raspberry pi?

I can only seem to find information regarding reading xinputs from an xbox original/360/one controller, but is there a way to WRITE inputs over a usb connection? Want to be able to read input from and xbox controller or regular controller, and send…
Connor
  • 27
  • 1
  • 9
1
vote
1 answer

X11 how to properly send event using XSendEvent?

I'm trying to send a key press event to the X11 display but the events are not getting sent. Here's my current attempt: void sendEvent(int scanCode, bool isPressed) { unsigned long focusedWindow; int focusRevert; int mask = isPressed ?…
Animesh Sahu
  • 7,445
  • 2
  • 21
  • 49
1
vote
0 answers

Is there a way to see the state of the Xbox button using Xinput.h? (Using an Xbox One controller)

Basically the title. I'm using Xinput.h on Windows with an Xbox One controller to control the mouse and a bunch of other common key presses remotely, and I really want to use the Xbox button to enable/disable the controller. The Xinput.h…
drobot
  • 23
  • 5
1
vote
2 answers

Unable to send keypress to Xvfb display using XTestFakeKeyEvent

Using this short snippet of code I am able to capture events from the keyboard (/dev/input/event1) and print them properly. However, sending them to the Xvfb display using XTestFakeKeyEvent does not work even if XTestFakeKeyEvent returns…
Az ayd
  • 11
  • 1
1
vote
0 answers

Xinput doesn't produce any mouse events when cursor is over the Chrome/Opera

I am developing a Linux program on c++ for listening mouse/keyboard activities. I am using the xinput library: "xinput test " command to listen to events. When mouse cursor is over the Chrome or Opera(no matter in focus it or not), the…
1
vote
0 answers

How to re-configure mouse buttons on Linux?

I want to re-configure mouse settings so that I could scroll up and down when I click the middle button on my mouse (wheel). I typed the xinput --list command in the terminal and got the following output: ⎡ Virtual core pointer …
imidazole
  • 61
  • 4
1
vote
0 answers

How to print out left joystick Xbox Once controller on terminal in VS19, .Net Core 3 using XInput?

I am looking to print something on the terminal in VS 2019, .NET Core 3 using SharpDX.XInput for the joystick. Maybe some value -1 if the joystick is pushed to the left and 1 if the joystick is pushed to the right. This is the code I'm currenlty…
1
vote
0 answers

Dump xinput buffer

I have written a script that watches for activity on the keyboard, even if the script is running in the background, and takes actions based on those events. However, I need to pause this at times, and when it resumes, I need it to not take action on…
Alex Collette
  • 1,664
  • 13
  • 26
1
vote
0 answers

LUFA XInput Controller Endpoint IN/OUT not working

Intro: I've been trying (and failing for four entire days straight so far) to get my Atmega32u4 device (Arduino Pro Micro) to emulate an Xbox controller. It doesn't have to pretend it's an Xbox controller, but I need to communicate with the XInput…
1
vote
0 answers

Xlib XEventQueue doesn't always contain all events

hopefully, this is not a bug and just my misunderstanding of how Xinput is supposed to work. I have been writing a game, and I am using Xlib to get input from the keyboard. The bizarre thing is that some KeyRelease events seem to get stuck in the…
Jeff Davenport
  • 2,624
  • 2
  • 13
  • 19
1
vote
1 answer

How to set xinput DualPoint stick speed in Xubuntu 18.04

I need to optimize the speed of my point stick since I installed Xubuntu 18.04. When I run xinput list-props 15, here is what I get: Device 'AlpsPS/2 ALPS DualPoint Stick': Device Enabled (143): 1 Coordinate Transformation Matrix (145): 1.000000,…
1
vote
0 answers

How to change an Xbox controller's assignment in .NET?

In Windows 10 UWP, how can an app developer change which controller number a gamepad is assigned to, purely in code? For a reference scenario, in the Xbox 360 versions of the Rock Band games, it is possible to have controllers assigned to a specific…
Formedras
  • 21
  • 4
1
vote
0 answers

get hardware scancode corresponding to XKeyPressedEvent

I am working on an open source project to add something in that i need. It uses an XInput system to get input from the keyboard and i cannot change that. However, for keypresses, i need to get the hardware scancodes, like those listed here. Is there…
1
vote
1 answer

Change which player the Xbox controller represents?

Does anyone know if there is a way to change which portion of the ring is lit on the Xbox controller? For instance, I want the first controller to be plugged in to represent player 2 (if player 1 opts to use keyboard/mouse input) Thanks.
Ryan Kearney
  • 1,071
  • 11
  • 14
1
vote
1 answer

C++ XInput and XBOX 360 controller never connects

I'm trying to connect an XBOX 360 controller to get input for a program, but my program will never register a connected controller -- I have confirmed the controller is connected. I'm running Windows, programming in C++, and using QT for my IDE. My…
Bdudely
  • 21
  • 2