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

Resetting button input in xInput using an Xbox controller

I'm using XInput for a project and I'm having a problem using the xbox controller. When I use the B button to return to a previous state, its registering the button press so fast that it continues to push back multiple states that use the B button…
Josh Lake
  • 567
  • 1
  • 6
  • 17
0
votes
1 answer

Converting gamepad thumbstick values to range

I'm trying to get the value from the thumbstick with XInput, but the values are weird and I don't know how to handle them correctly. How do I calculate so that I can read the values between -1 (thumbstick to the left/up) +1 (thumbstick to the…
Deukalion
  • 2,516
  • 9
  • 32
  • 50
0
votes
1 answer

Xinput polling threading design

I have developed a .net library for XInput using P/invoke, and am now getting ready to implement it into a gui (WPF). I have had a look at the BackgroundWorker class, and have got it working as a test for 1 controller, but its a hack job and clearly…
marco9999
  • 83
  • 8
0
votes
1 answer

Second Cursor is not triggering a screen refresh

I previously posted about controlling two separate cursors in two xsessions. (http://stackoverflow.com/questions/13714831/controlling-multiple-pointers-with-xlib-or-xinput-in-ubuntu-linux) That solution worked well. However, a odd thing occurs when…
amustafa
  • 858
  • 1
  • 7
  • 17
0
votes
1 answer

assembly reference SlimDX?

I've looked at another post involving SlimDX and wanted to reference it in my project (for Xbox 360 Input), but after installing SlimDX, the files are nowhere to be found. I tried searching Slimdx on my whole computer, and nothing showed up. This is…
Klompengard
  • 304
  • 2
  • 12
0
votes
1 answer

Set keyboard layout using pyudev

I wrote this script to change the usb keyboard layout automatically on plug-in import pyudev from subprocess import call monitor =…
Adi
  • 562
  • 7
  • 18
-1
votes
1 answer

Compiler won't accept valid code? error C2447: '{': missing function header (old-style formal list?)

Just want to start by saying thank you for taking the time to look at my problem. Below is the code that is giving me the error: // INFO(Tanner): XInputGetState Support #define X_INPUT_GET_STATE(name) DWORD WINAPI name(DWORD dwUserIndex,…
BornGeek
  • 58
  • 1
  • 9
1 2 3
9
10