Questions tagged [joypad]

12 questions
16
votes
1 answer

Writing a game controller driver for some hardware connected via USB

I'm looking to create a driver for a game controller I have (a cobalt flux www.cobaltflux.com ). The physical controller itself has nine face buttons and two control-box buttons (start/select). The control box has a usb port, but as far as I can…
user2601064
  • 281
  • 3
  • 10
2
votes
1 answer

how to catch all GenericMotionEvent when a DialogFragment is shown?

I need to show a preference dialog that wait for Joypad keypress. I know that DialogFragment has its own Window then has its own onKeyListener. I can easily catch Joypad press by setting a listener like that. public class MyDialogFragment extends…
Davide Berra
  • 6,387
  • 2
  • 29
  • 50
1
vote
2 answers

Cocos2d. Digital joystick (joypad)?

There are a lot of examples of analog joypad for cocos2d. But I need a simple 8-directional (8-positional) digital one.
Gargo
  • 704
  • 6
  • 16
1
vote
1 answer

Does the Flash Incubator support joystick / gamepad input?

I realize that natively Flash not been able to support joystick / gamepad input in the past and that it can be done using third party software that must be ran separately. However, with the new Molehill/Stage3D API which supports 3D model…
Dennis Day
  • 607
  • 2
  • 5
  • 13
1
vote
1 answer

How to use a Play Station 2 controller connected through USB port in XNA

I'm planning to do a simple game using the XNA and I would like to add the possibility of using a Play Station 2 controller. Is there a way to detect its inputs?
BlackBear
  • 22,411
  • 10
  • 48
  • 86
1
vote
0 answers

Android emulate touch on the screen using the joypad

I'm trying to make and app that can emulate the touch on the screen using the controller i want to try to do something like this: "https://play.google.com/store/apps/details?id=com.dancingpixelstudios.sixaxiscontroller". I'll use a wired xbox 360…
Massim
  • 11
  • 3
0
votes
2 answers

Cocos2d. Reduce rapidity (rate) of fire (bullets)?

I have a gamepad with a direction pad and 2 buttons. All of them are digital (not analog). I have a procedure for handling their events: -(void)gamepadTick:(float)delta { ... if ([gamepad.B active]) { [ship shoot]; } …
Gargo
  • 704
  • 6
  • 16
0
votes
0 answers

My Godot 4 game is detecting touchpad events as if they were joypad events. How do I disable this?

This is Godot 4 and, as dumb as it looks, this is the code: func _input(event): print(event, " in device ", event.device) When playing in debug mode, I see many events like this: InputEventJoypadMotion: axis=1, axis_value=-0.35 in device…
Luis Masuelli
  • 12,079
  • 10
  • 49
  • 87
0
votes
1 answer

implementing an interface with callback on a fragment

I'm learning android programming and for practicing I'm trying to do a controller for some dc motors, then I did a customview for making a virtual joypad, which uses an interface and a callback for the ontouch listener. The problem is, I'm working…
0
votes
1 answer

How to use a digital pad of a joystick with SDL 2.0 C++

I try to use SDL for map a joypad similar at xbox360 joypad. Now for use the button I use this code: std::vector tempButtons; for (int j = 0; j < SDL_JoystickNumButtons(joy); j++) { …
Francesco
  • 151
  • 1
  • 5
0
votes
1 answer

MythTV - Mythgame script that allows qjoypad profile selection based on ROM

I am trying to write a script that launches mupen64plus but allows for different qjoypad profilesto be selected based on which rom is running. Right now I only have one rom that needs a different profile but I can imagine in the future I would have…
0
votes
1 answer

Objective-C moving a player with joypad

i currently use a joypad that can move a player when touches began and moved. the problem is: If i touch on the Joypad and keep touching it without moving my finger or release it, how can I make the player keep moving? Here's some code: -…
Spale350z
  • 15
  • 4