Questions tagged [joystick]

For questions about joysticks.

496 questions
0
votes
2 answers

Xbox360 Analog stick angle SDL

Okay, straight to the point I'm working on a game engine in C++ using SDL and openGL with lua scripting and I need to get the angle of the analog stick to determine the direction of the 2d gun using this lua code playerLookArrow.rotation =…
user2943571
0
votes
1 answer

processing procontroll throttle

Just a simple question regarding the procontroll library on processing. I am trying to connect a joystick to a simple game. it consist of a vehicle that goes up and down. The downward motion is represented by gravity. the upward motion I wanted it…
0
votes
1 answer

Joystick Program Not Running (no values printed)

Ok so I'm back, my code now compiles successfully, it just does nothing when I run it, not even printing "Joystick Open Successful". I can't see any obvious reasons for this, any ideas? Again excuse my commenting: #include #include…
edward.ij
  • 55
  • 1
  • 8
0
votes
1 answer

Joystick Code error of undeclared variables

I am attempting to write a code to read a joystick axis values, which i eventually hope to be able to use the values for controlling motors. After copious amounts of trying to figure out C and how on earth to use the joystick api I wrote this code.…
edward.ij
  • 55
  • 1
  • 8
0
votes
2 answers

Unity : Input AxisRaw for Android (from a joystick)?

I'm trying to do a porting from a platform game made for PC to Android and right now I'm stuck in this part : The inputs So basicly, I reviewed all the Unity documentations and forums but not a lot of them talk about. Here is the portion of…
SilenT612
  • 43
  • 1
  • 7
0
votes
1 answer

Interfacing with a Futaba RC controller using c++ and ubuntu

So I am hoping to use a Futaba remote controller (specifically the Futaba 7c 2.4ghz) for a c++ + OpenGL simulator that I wrote. Are there Ubuntu packages available to assist with this? I am okay with buying the USB cable to connect the controller to…
Jomnipotent17
  • 451
  • 7
  • 23
0
votes
1 answer

How can I read out Joystick values in Objective-C under OS X Snow Leopard?

I'm trying to interface with Joysticks in Objective-C, basically I want to read out the analog position values. I'm new to objective-c, and even though I searched a lot, I didn't find a way to do this. There seems to be a way using GLUT, but the…
svens
  • 11,438
  • 6
  • 36
  • 55
0
votes
1 answer

Increase Character speed from a Joystick Input?

Now i have a working Joystick, but I want to increase the characters speed. I´m using this one at the moment: http://roadtonerdvana.wordpress.com/2013/09/20/jcinput-a-simple-joystick-for-sprite-kit/ I attached an Imagefile as the moving object, but…
user3010148
  • 29
  • 1
  • 1
0
votes
1 answer

SDL doesn't detect xbox controller on linux or windows

Here's my code #include #include int main(int argc,char **argv) { std::cout<
user467526
  • 517
  • 5
  • 19
0
votes
1 answer

Android Can't get two virtual joysticks to move independently but at the same time

@Override public boolean onTouch(View v, MotionEvent event) { // TODO Auto-generated method stub float r = 70; float centerLx = (float) (screenWidth*.3425); float centerLy = (float) (screenHeight*.4958); …
0
votes
1 answer

Problems with joystick object in python

Hiho, I'm trying to read an USB joystick attached to my Raspberry Pi with this python script: import pygame pygame.init() print pygame.joystick.get_init() print pygame.joystick.get_count() j = pygame.joystick.Joystick(0) print j j.init() print…
0
votes
1 answer

Pass MotionEvent from callback function to a class method causing "Exception dispatching input event"

I'm writing Android code to handle joystick input and the simple case works fine, but when I try to pass the MotionEvent to a class method, I get: 09-01 10:36:48.358: E/InputEventReceiver(8079): Exception dispatching input event. 09-01…
foobarbecue
  • 6,780
  • 4
  • 28
  • 54
0
votes
1 answer

How to code for game controller joysticks?

I am attempting to write an application which takes input from the Wikipad's dual thumb joysticks. I have been unable to find sample code that does this or developer documentation for the Wikipad. The NVIDIA Shield is a similar device that I would…
foobarbecue
  • 6,780
  • 4
  • 28
  • 54
0
votes
1 answer

C# - variable speed when using turning joystick

I am making a game, using a onscreen/virtual joystick. The joystick it self works fine. What I want is when you turn the joystick, a bullet is fired in that direction. I got that working too. Now the problems arises when shooting a bullet when the…
DijkeMark
  • 1,284
  • 5
  • 19
  • 41
0
votes
0 answers

Joystick Simulink s-function using mmsystem.h

I am trying to develop an s-function block to get Joystick input in Simulink. While it seems pretty straight forward with mmsystem.h, now I got lots of nonsense samples between real values. I basically use S-Function Builder with no inputs and an…
wojakzek
  • 287
  • 1
  • 3
  • 6