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

Can't move mouse with touchpad

As the title suggests, my touchpad won't move my mouse. I am therefore unable to select outputs of my commands, but I am able to take screenshots of windows. (Luckily I am used to using keyboard shortcuts) I have no clue what caused this. I have…
mazunki
  • 682
  • 5
  • 17
0
votes
1 answer

Getting system wide key presses with python

I am trying to write a program that executes code whenever certain keys are pressed. I currently have this working, but unfortunately, this solution is very slow. Python doesn't find out about the key press until several seconds after the…
Alex Collette
  • 1,664
  • 13
  • 26
0
votes
1 answer

Write mouse coordinates and mouse clicks with timestamps to file?

I'm trying to create a bash script that records the location of the mouse every 5 milliseconds. I also want to record the timestamps and locations of mouse-clicks. Recording the mouse location has been easy with xdotool getmouselocation. I've been…
David Papp
  • 119
  • 1
  • 10
0
votes
1 answer

XInputGetState hangs

I'm trying to use XInput API for my game engine (I'm using DirectX11 and C++). I just want to test if a controller is found so I #included and call XInputGetState but I get a strange behavior: XINPUT_STATE state; ZeroMemory(&state,…
Luca
  • 1,658
  • 4
  • 20
  • 41
0
votes
1 answer

Touchscreen calibration Linux, Arch, EloTouch xinput_calibrator symbol lookup error

Im struggling to calibrate a Touchscreen with Linux Tool xinput_calibrator under Antergos Arch Linux (kernel 4.15.11-1-ARCH) running on Intel Atom X86 SBC (up-board.com) Whenever I run the xinput_calibrator I got the following…
0
votes
1 answer

UBUNTU-xinput DONT save settings after restart, unplug, etc

Well, thing is that I have an Abyssus Razer that works perfectly on MATE, but on Debian, Elementary, OpenSUSE, and others the DEFAULT setting is super slow. I solved the thing with XINPUT. It's even better than the original software, you can take…
0
votes
2 answers

bash: comparing strings with grep-variable issue

bash-newbie here. I want to use the following simple script as a shortcut to enable/disable the touchpad of my laptop: #!/bin/bash result=$(xinput --list-props 11 | grep "Device Enabled") echo $result # Output: Device Enabled (140): 1 if [[…
zet0x
  • 21
  • 3
0
votes
0 answers

Windows.Gaming.Input.Gamepads doesn't work?

I've got Windows 10 Creators Update and am writing a UWP C++ app. I've tried with both C++/WinRT and C++/WRL and it seems that Windows.Gaming.Input.Gamepads just refuses to see my wired XBOX 360 controller and my Logitech XBOX 360 style gaming…
TJ Bandrowsky
  • 842
  • 8
  • 12
0
votes
1 answer

Getting Undefined reference to XIChangeProperty

I am writing a C++ program to monitor a value and change the enabled status of the touchpad and trackpoint on my laptop. I have everything working except for the call to XIChangeProperty. When I run make, it throws undefined reference to…
Fullmetal99012
  • 191
  • 3
  • 12
0
votes
0 answers

Steam and X11/Xorg: Steam overrides custom configuration?

I'm running Lubuntu 16.04, with xboxdrv version 0.8.6 (built from the git repository, as 0.8.5 is the version available in the Ubuntu repository), using an official Microsoft Xbox 360 wired controller, and running the official version of Steam for…
0
votes
1 answer

How to distinguish two usb touchscreen devices with same pid/vid in linux

How to distinguish two usb touchscreen devices with same pid/vid in linux I have two same usb touchscreen devices. I want to use them without errors when I start the computer. So I need to use “xinput map-to-output ” to distinguish them. However,…
C.Roy
  • 1
  • 1
0
votes
1 answer

Calibrate touchscreen over xfce4

dear experts I have a problem with calibrating my Penmount touchscreen over x-server. I connected through tslib. In X, I have a compiled xf86-input-tslib library. Unfortunately, ts_calibrate not working with "Illegal instruction level Touch work…
inks
  • 1
  • 2
0
votes
1 answer

How to send XInput button?

I want to send a button pressed signal to a game and I have read the APIs in MSDN. But the APIs there only provide functions which get gamepad state not send signal to PC. Can any one help me?
PaleNeutron
  • 2,543
  • 4
  • 25
  • 43
0
votes
1 answer

How can I use XInput in Python ()WITHOUT PYGAME) to sniff button presses on the controller?

I've been scouring the forums for days now trying to find a way to sniff XInput from an XInput controller. I haven't found any way to detect if a button is pressed down and most the forum posts are about the analog sticks. I also want to achieve my…
Ben Chadwick
  • 11
  • 2
  • 9
0
votes
1 answer

SharpDX.Xinput Check if A button is being held down instead of being pressed

I am trying to check if I press and hold the A button on my xbox controller. Right now i have it so i can see if my button is being pressed but not being hold. This is the code i'm using right now to see if its being pressed. private void Loop() …