A game controller held in two hands, where the fingers (especially thumbs) are used to provide input

learn more… | top users | synonyms

9
votes
1answer
2k views

Xbox thumbstick used to rotate sprite, basic formula makes it “stick” or feel “sticky” at 90 degree intervals! How do you get smooth rotation?

I am using a very basic formula to calculate what angle my sprite (spaceship for example) should be facing based on the Xbox controller thumbstick i.e. you use the thumbstick to rotate the ship. In ...
4
votes
1answer
111 views

Key events outside of an SDL application

I'm developing an app under C++ and SDL running in Ubuntu. I'm using the SDL events to handle the keypad buttons. My problem is that my app launch other programs and it should close they with a key ...
3
votes
1answer
457 views

Gamepad thumbsticks active range

for my current project I use gamepad. I was successfull in hooking it up in C# through SlimDX. Everything works fine, only problem is that thumbsticks don't fully use the active range. If I move ...
2
votes
1answer
357 views

How do I detect when the Xbox home button is pressed XNA?

How do I detect when the big Xbox button in the middle of the gamepad is pressed in XNA?
1
vote
2answers
598 views

Accessing DualShock 4 motion sensor in Windows (ideally Unity)

I'm trying to use a DualShock 4's IMU as a motion controller in Unity, under Windows 7. So far I've tried: DS4Windows (1.5.11): reads motion sensor data, but does not expose them to Unity as axes ...
1
vote
1answer
118 views

SDL2 Gamepad triggers trigger when disconnecting the pad

I'm using MonoGame and SDL2. I'm having a strange problem with the Gamepad. When I disconnect it during the game, before the disconnected event fires, the left and right triggers return values as if ...
1
vote
0answers
315 views

Why is my XInput gamepad press stamp not working?

I'm trying to add basic gamepad input to my c++ DirectX game but i'm having some trouble creating a press stamp (registers the press only the first time it's pressed if button held down). The entire ...
0
votes
1answer
229 views

Supporting Multiple Input Devices

I'm currently developing a PC game with the assistance of XNA and I'm integrating keyboard and gamepad control support. Up until now I've only supported gamepad control, and finding an elegant way to ...
0
votes
1answer
80 views

Controls become inverted after a collision

I'm just prototyping a simple project. I'm moving a sprite on screen using the Xbox gamepad: public override void Update(GameTime gameTime) { gamePad = GamePad.GetState(PlayerIndex.One); ...
0
votes
1answer
181 views

logitech dual shock Python support

Does anyone know how to use "dual vibration feedback makes your games more realistic and immersive." on this logitech gamepad I know about pygame however I don't think it gives feedback. ...
0
votes
0answers
7 views

Feeding accelerometer data to vjoy

I am getting roll, pitch, yaw data from my accelerometer data. How do I map it to vJoy's appropriate axes given as X, Y, Z, Rx, Ry, Rz and Slider1, Slider2? Do I have to reverse engineer into ...
0
votes
1answer
784 views

Gamepad API For Multiple Pad Types

I'm a C++ newbie working on adding gamepad support to Moai as a learning exercise and because I'd like to be able to use a gamepad with it. I'm starting by implementing the Xbox 360 gamepad via XInput ...
-1
votes
1answer
368 views

XNA Framework doesn't recognise controller [closed]

So just a little bit of XNA code: if (this.IsActive && (Keyboard.GetState().GetPressedKeys().Length > 0 || Mouse.GetState().LeftButton == ButtonState.Pressed || ...
-1
votes
1answer
187 views

Get stick analogue XY position using Jinput in lwjgl

I want to capture the movement of the analogue stick of the gamePad. is there any equivalent function to this? public void mouseMoved(MouseEvent mouseEvent) { mouseEvent.getX(); //return the X ...