Questions tagged [controllers]

Often the primary input device for console games. Typically designed to be held in one or both hands rather than being laid on a surface.

Filter by
Sorted by
Tagged with
10
votes
1answer
6k views

Can I use Playstation controller button icons in my game?

I'm currently working on a game that will be released on PC with controller support, and I'm trying to find a way on how to best represent controller icons within the game. I'm assuming I can't ...
7
votes
4answers
3k views

Using XBOX controllers on PC for an XNA game

Does anybody know how to do this? I have been trying to figure this out with no luck.
7
votes
4answers
2k views

What's the best way to train PID controllers?

This is borderline non-gamedev but PIDs are commonly used in games so I thought I'd give it a shot. I've got a few PID controllers in my game, used for things like steering and throttle control. I'm ...
7
votes
3answers
1k views

How standardized are joystick / gamepad configurations?

Right now I'm working on input for my game. The only controller I own is an XBOX 360 one. From what I can see, if a controller's stick has a Z axis, these are actually triggers. Essentially I'm ...
6
votes
2answers
1k views

How can I rumble/vibrate my controller with libGDX?

The com.badlogic.gdx.controllers.Controllers API only supports getting the input data (which works fine). Is there a way to make my controller rumble/vibrate, ...
5
votes
3answers
32k views

Java - Best Implementation KeyListener For Games

I am working on a game using only the swing and awt packages. Note I can only use the default Java libs. Meaning I have to use KeyListener. I have imported KeyListener properly, however, it is still ...
5
votes
0answers
2k views

How do I make the PS4 controller vibrate in Unity3D on mac?

I am currently working on a 2D game in Unity3D with an option to play with a gamepad/controller. I would like the PS4/dualshock 4 controller to vibrate. I am on mac. I have looked into Xinput but I ...
5
votes
0answers
281 views

LibGDX controllers: how to fix crashes in JRuby? [closed]

I'm using JRuby with LibGDX and it's been going quite swimmingly, save for a crash I experience every time I try to use the controllers extension. Here's a basic rundown: I've required all the ...
4
votes
5answers
736 views

Why four buttons rather than two?

I'm curious that most console controllers released these days - and all handheld consoles - contain four main buttons rather than two. Obviously increases in processing power, graphics engines etc, ...
4
votes
2answers
2k views

How can I map thumbsticks to cardinal directions?

I've got a tile based game that has notions of moving up, down, left, right and the diagonals (by alternating horizontal/vertical movement). I've found that if I use the default ...
3
votes
2answers
659 views

How do you test xbox (via PC) input without an xbox on XNA Game Studio?

Is it safe to just hookup a wired Xbox controller to my PC via USB? Do I need to buy a special PC Xbox controller? I've read conflicting reports. Any help is appreciated.
3
votes
1answer
1k views

How can I use imprecise accelerometer data for controls?

I want to rotate an object with respect to the phone's position. I use the accelerometer output to detect orientation: ...
3
votes
1answer
427 views

USB NES controller

I just recently bought the Retrolink USB NES Controller. I would really like to make simple platformer games (for PC - engine/ frame/ library doesn't matter) for this pretty popular retro controller. ...
3
votes
1answer
1k views

How do I quantify the curvature of a touch swipe?

I'm implementing a touch controller for my game. I am attempting to imitate Tiki Taka Soccer's "ball shooting" controls (gameplay video), where the curvature of the player's swipe affects the curve ...
3
votes
2answers
221 views

Is there a expected set of button mappings games commonly use?

I am making a game that will support a XBox 360 controller but I would like to try and keep the default button mappings to be what is expected from a user's past history from playing other games. Is ...
3
votes
2answers
6k views

On screen controller for libgdx games?

Does anyone know a better controller for 2D Games than a virtual on screen joystick? The pros of the joystick are: Easy to implement for developers Familiar interface for users But there is a huge ...
3
votes
1answer
2k views

Recommended Polling Rate

I'm using the XInput API to support gamepads. As XInput is not event-driven, but requires polling, my question is, what is the recommended polling rate (ms) for gamepads or specific, the XBOX 360 ...
3
votes
2answers
2k views

Supporting Controllers on Mac

I'm currently developing a small, cross-platform game for Windows/OSX. I have XInput support working correctly on the Windows version. I've left off Mac controller support until now and I'm struggling ...
3
votes
1answer
234 views

GUI device for throwing a ball

The hero has a ball, which shall be thrown with accuracy in a court on iPhone/iPad. The player is seen from above, in a 2D view. In game play, the player reach is between 1/15 and 1/6 of the height of ...
2
votes
1answer
429 views

Handling multiple controllers in a single player game

Currently implementing input support for a single player game and I'm unsure how best to handle the (admittedly odd) situation where the user plugs in 2 or more controllers. Should only one be active, ...
2
votes
1answer
373 views

Adapting motion controls to changes in the player's orientation

I am using gyroscope data (pitch, roll) to move the player's space ship. It works perfectly as long as you play in a standard position (e.g. sitting down). Once you start using it lying down (e.g. ...
2
votes
1answer
158 views

Using Smartphone as a steering wheel on Linux

I am making a car simulation game, however, I find it being inefficient and difficult to test the simulation realism and accuracy via keyboard or even joystick control. I need a steering wheel ...
2
votes
1answer
1k views

Unity3D Joystick Buttons Xbox360 & PS3 have Inconsistent Button Inputs?

I've been browsing through Google and researching button inputs in Unity, and I came across this page. When looking at it I noticed that the B button on the Xbox360 controller is set to Button 1, but ...
2
votes
1answer
90 views

Using single Triggers on multiple controllers in Unity

After trying out a lot of stuff I finally need to surrender. Im having a project where I want to use the triggers of the Xbox Controllers seperately. To do so I added them as axis 9 and 10 in the ...
2
votes
1answer
2k views

Unity Controller navigating UI

I want players to be able to use a controller to navigate our game's menus. We use Unity's new UI, and in the EventSystem have specified a controller axis for our vertical axis. However the selection ...
2
votes
1answer
1k views

Driving Force GT: Force Feedback and Wheel Rotation

I'm diving into the world of game development on PC and have a language agnostic question in regards to controller output. I have in my possession a Logitech Driving Force GT. This particular ...
2
votes
1answer
231 views

Using an iPhone as a controller for a flash game

How can I use an iPhone as a controller for a flash game, as described here?
2
votes
1answer
157 views

Flexible Controller Support

I am developing a platformer in Pygame with the eventual hope of releasing it on Steam. I am currently trying to add input support for multiple controllers. To do this, I am using the Pygame ...
2
votes
0answers
1k views

3 Button Multi-touch for Android

OK, my multi-touch system was somewhat convoluted, but was working perfectly OK until I tried to run my game on my Nexus 10 which is running Jellybean. Crashing all over the place! So I removed my ...
1
vote
2answers
530 views

Use my computer as a controller/keyboard for the PS3

I imagine that I should be able to pair my computer to my PS3 via bluetooth and use my computer as a controller for the menus and for typing. Are there any open source projects that have done this? If ...
1
vote
1answer
3k views

Handling XBox 360 Controller Connections in LibGDX after Game has Started

I am currently making a game with the java library LibGDX and want to add XBox 360 controller support using the GDX-Controllers extension. At the moment I have a setup where I create a listener to ...
1
vote
1answer
164 views

Steelseries Stratus XL controller: Keycode for middle button

I'm working on an Android app (Java, level 19+) that uses a controller to e.g. walk and it's working (almost) fine with both the Steelseries Stratus XL and the Moga Pro Power. The only problem is that ...
1
vote
2answers
4k views

Action button: only true once per press

I'm using SFML2.0 and am trying to make a wrapper class for my controller/joystick. I read all the input data from my controller and send it off to my controllable object. I want to have two types of ...
1
vote
2answers
2k views

Can't set up a PS3 controller in Unity

So I connected a ps3 controller to my computer via USB cable, when I press play I am able to move by using arrows on the left of the ps3 controller and also I am able to shoot and aim by triangle and ...
1
vote
1answer
155 views

Designing a four-directional movement control

I'm developing an RPG for iOS. Currently, I plan my controls to look like this: So the user can interact with objects, people, etc. by tapping on the right side of the screen, and moves by swiping in ...
1
vote
1answer
32 views

How can I change displayed information as a physical control knob is slid along a track

I'm making an installation for exhibition or demonstration purpose. I want to have a physical handle the viewer can slide along a track. As they do so, the information displayed on the screen should ...
1
vote
2answers
130 views

How to tell whether the joystick axis is released (not pushed) in SDL2 or in general?

I'd like to implement an event listener that triggers character movement (left/right/up/down or stay) according to the direction of pushed axis on the joystick. Due to jittering, the approach I found ...
1
vote
1answer
357 views

Unity provides wrong Input value if game is started with bumpers pressed down

As the title states I am having an issue with the following. It is a pretty specific edge case but it is something I can't work around. In Unity I have created two Axes to allow me to check the value ...
1
vote
1answer
2k views

Android Action_Move when moving between specific screen areas

OK so I know how to iterate through the different pointers that are currently touching the screen so I know what the coordinates are of these pointers using the following: Code snippet ...
1
vote
0answers
42 views

Support multiple gamepad layouts (Unity 2017.3)

My game supports touchscreen, keyboard + mouse and the Xbox One controller and the input so far works properly. Now I also want to add a second layout for the gamepad the player can then pick in the ...
1
vote
0answers
230 views

How to setup an OSC client on Unity and send messages?

I'm trying to send messages from a Unity phone app (using OSC) to an OSC server (python, on a Raspberry Pi). I have the server setup, but I have no clue how to send messages from Unity. I've looked ...
1
vote
0answers
42 views

Is it possible to simulate different vendor gamepads?

As a developer it would seem natural that I would like to support as many possible hardware compositions as I can, however as I'm not a big studio I have a limited budget, which means I have to get by ...
1
vote
1answer
187 views

How to reregister gamecontroller changedvalue handler upon game scene reload

I'm working on a tvOS game that uses the siri gamepad controller. Everything works fine the first time out. If the user loses the round I reload the same scene using presentScene. After reloading the ...
1
vote
0answers
659 views

How do you program the right analog stick of a controller in JInput?

I have the Left Analog Stick programmed and accepting input (moving a character around). (getCompassDir() returns the values of the cardinal directions and ...
1
vote
1answer
177 views

Using DualShock 4 motion sensor in Unreal engine (windows)

Anyone know how to access the gyro/accelerometer values from a DualShock 4 controller in the Unreal engine (under windows)? Are there any plugins that do this? Does raw input work?
0
votes
1answer
42 views

Is it legit to use Custom Controller Buttons for PC Games in Unity?

Not sure if this is off topic, but I have a problem. I'm making buttons for my own controller in my Game. For example, the attached images will appear to indicate the player to press the A or B ...
0
votes
1answer
38 views

Crouching Up and Down XNA C# Controller

The game is a 2D platformer. The problem I have is when I press the B button to crouch from standing, I do not know how to implement a function where B can be pressed again to move back to the ...
0
votes
1answer
582 views

How the game sends force feedback to the steering wheel

How the game will be some of the information feedback to the steering wheel, such as bumps, bumps, vibration and so on. View MSDN, which are introduced from the steering wheel to get the relevant ...
0
votes
1answer
214 views

How to create axes for a console controller

What should I change in the input manager to enable me to use a joystick? I have a usb cable to connect the joystick to the computer but how do I set up the controls?
0
votes
1answer
1k views

In Unity for Android, how do I create touchable buttons?

I'm making a test game for Android in Unity 5, and I want to add left-right control buttons like the circles below, to move an object left or right. (source: raywenderlich.com) How can I do this? ...