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
0
votes
1 answer

Any way to use more than 4 XBox controllers in Unity?

Currently I am using InputSystem and am running into XInput’s hardcoded limit of 4 controllers. I’m looking for any ways to bypass that, e.g. by making my XBox controllers use DirectInput API. Is there any way to bypass that limit: In Unity, e.g.…
SurDno
  • 31
  • 1
  • 4
0
votes
1 answer

Ubuntu 22.04 Xinput settings partially changing when change with ~/.profile file

This type of questions are all over the stackoverflow. I know it and I've searching this for almost 2 days. I started to look xinput configs that needed for my trackball. Than I found and configured but when I restart the PC, poof nothing persist.…
strafor
  • 61
  • 4
0
votes
0 answers

xinput & libinput calibration & configuration of a Fujitsu resistive touchscreen (void linux)

So here's the situation: I have been running Void on a Toughbook CF-31 from about 2011 that has treated me quite well. It was running Win10 before I put Linux on it and the touchscreen worked with that OS. However, as soon as I installed Void the…
nau5ea
  • 13
  • 4
0
votes
1 answer

rqt can not connect to Xming via SSH X11 forwarding

I'm running ROS 1 Noetic on Ubuntu 20, using PuTTY to forward X11 to Xming on Windows 10. RViz and Gazebo work fine, but when I run rqt, I get an error: X server does not support XInput 2 failed to get the current screen resources The X11 connection…
alvis
  • 349
  • 2
  • 11
0
votes
1 answer

What is the 3rd parameter meant to look/be like XInputGetBatteryInformation()

Sorry if I messed up this post or something, my first time ever posting on Stackoverflow, I'd usually ask a discord server for help but they don't do C++, I'm pretty new to C++ and I am trying to develop a Bakkesmod plugin, it uses XInput, the idea…
oofsamy
  • 21
  • 1
  • 3
0
votes
0 answers

Map keys on Logitech presenter under Linux

I have a Logitech R400 presenter which has four buttons: Left, Right, Present and Screen. It's connected to USB. Left/Right work out of the box and map to Page-Up/Page-Down. Present and Screen seem entirely dead out of the box. I want to make the…
0
votes
1 answer

Why does XInput recognise DualSense controller over USB but not Bluetooth?

I can connect a Sony DualSense (PS5) controller to Windows via USB or Bluetooth. The HTML5 Gamepad API recognises the DualSense whether I connect over USB and Bluetooth work with https://gamepad-tester.com/ However with XInput the DualSense only…
Colonel Panic
  • 132,665
  • 89
  • 401
  • 465
0
votes
1 answer

Get event for new USB keyboard connected on Linux

Is there any event I can listen to when a new keyboard attaches in Python? I'd like to disable the internal laptop keyboard and run xmodmap for the new keyboard. My only idea right now is polling xinput list and then grep USB. Is there a better way…
user1506145
  • 5,176
  • 11
  • 46
  • 75
0
votes
1 answer

XISelectEvent throws X Error: BadValue (integer out of range for operation)

I'm trying to read events from X11, here's my minimal repro: #include #include #include #include #include #include int main() { if (getenv("DISPLAY") == NULL)…
Animesh Sahu
  • 7,445
  • 2
  • 21
  • 49
0
votes
1 answer

Precisely simulating an xbox controller for Unity game

I'm trying to simulate a controller via python but having issues with timing. I've successfully implemented reading the inputs into a dictionary, and then collecting all of them into a list. I know that the game(in Unity) doesn't recognise inputs…
4amvim
  • 115
  • 1
  • 9
0
votes
2 answers

How to read xcb_input_fp3232_t and xcb_input_fp1616_t

I have implemented a xinput2 listener to my window with the following code: ... else if(eID == XCB_GE_GENERIC){ // Generic events = XINPUT auto* gev = (xcb_ge_generic_event_t*)event; if(gev->extension !=…
0
votes
2 answers

Cannot set Tapping Enabled Default on Archlinux

When I log into Archlinux on Dell Vostro 5590, if I want to "click" something with the touchpad I have to press the touchpad, as tapping it is not enough as I'd like it to be. Running the following xinput set-prop 11 "libinput Tapping Enabled"…
Enlico
  • 23,259
  • 6
  • 48
  • 102
0
votes
0 answers

How can I open a serial connection in one python class, but use that connection in another class?

Part of my Python program opens a connection to an Arduino running GRBL. When this class is called, GRBL variables are set up and the serial connection is opened. I have everything else running the way I want, but it would be great to get gamepad…
0
votes
0 answers

How to Hook Global / Raw Xinput Events?

How do I hook a xinput device to manipulate the inputs e.g. ignore all button presses except for a specific button? Is it possible to hook the raw events so I can control any inputs through my code and any other application just sees what I allow?
cquests
  • 41
  • 2
0
votes
0 answers

Unsure if purchase or not a codesign certificate for custom xinput dll

Hi I like to create a custom version of xinput1_3.dll in visual c++ to put in to binary folder where there is the game exe file. My question is: what happen if I sign the dll without a trust organization certificate using only a private key ? Is…
user3449922