iPhone acceleration sensor: How simulate Joystick?

Previous topic - Next topic

Hark0

Hi!

I copy this about acceleration sensor from help file:

"The acceleration sensor of the iPhone can be polled with GETJOYX(0), GETJOYY(0) and GETJOYZ(0) accordingly. The return values are the accelerations for each axis in "G" (9.81 m/s^2)."

Well, I no have joystick, How I simulate/test GETJOY.... without hardware?  O_O

TIA, Hark0
http://litiopixel.blogspot.com
litiopixel.blogspot.com - Desarrollo videojuegos Indie · Pixel-Art · Retroinformática · Electrónica Development Indie Videogames · Pixel-Art · Retrocomputing · Electronic

backslider


Slydog

Do you own a Wii?
If so, do you have bluetooth on your PC?  (If not, I've seen dongles for as low as a dollar (insert your country's currency here, ha) or two ).

There are drivers / utils you can download to allow you to use the Wiimote on your PC.
I've never tried it however.
I would think they would allow you to simulate a joystick natively.

Also, I think there is also a project around here to allow the Wiimote to work directly with GLBasic, but I'm not sure what input commands it uses.

Or an XBox controller, but I think you need an extra adapter to get that to work on a PC.

Or, as backslider said, buy a joystick, I just found two cheap ones online at one of our retail stores (thesource.ca).
My current project (WIP) :: TwistedMaze <<  [Updated: 2015-11-25]


Kitty Hello

I also wanted to write some App that can communicate with a windows PC over UDP and send that to the PC. So you could use your iPod to test on Windows.
Using ?IFDEF IPHONE you can do that easily.

Hark0

I have iphone and IPAD, also 360 and Wii ... I think I'm going to decide to use the wiimote ...

I have no desire to compile on PC, transfer it to the mac, compile, sign, transfer to the iphone / ipad, test ... and back again.

Thank you all for the comments.

;)
http://litiopixel.blogspot.com
litiopixel.blogspot.com - Desarrollo videojuegos Indie · Pixel-Art · Retroinformática · Electrónica Development Indie Videogames · Pixel-Art · Retrocomputing · Electronic

Kitty Hello

Is there now WiiMote drivers that can use it as a regular joystick?

Slydog

Glovepie claims their drivers can fully emulate a joystick, plus tons of other features:
http://glovepie.org/glovepie.php
My current project (WIP) :: TwistedMaze <<  [Updated: 2015-11-25]

Hark0

http://litiopixel.blogspot.com
litiopixel.blogspot.com - Desarrollo videojuegos Indie · Pixel-Art · Retroinformática · Electrónica Development Indie Videogames · Pixel-Art · Retrocomputing · Electronic

Hark0

Quote from: Slydog on 2010-Jul-22
Glovepie claims their drivers can fully emulate a joystick, plus tons of other features:
http://glovepie.org/glovepie.php

WOW!!!

GlovePIE Hardware Supported:

    * Nintendo Wii Remote (Wiimote)
    * Sony Dual Shock 3 (except for Gyro) or Sony SIXAXIS
    * NaturalPoint (Or eDimensional) TrackIR, OptiTrack, SmartNav
    * FakeSpace Pinch Gloves (9600 baud by default, but can be changed)
    * Concept 2 PM3 rowing machines (ergo or erg)
    * All joysticks or gamepads recognised by Windows
    * Parallel port gamepads (with PPJoy)
    * All keyboards
    * Mice with up to 5 buttons and 2 scroll wheels
    * Most microphones (don't have to be high quality)
    * Most MIDI input or output devices
    * Essential Reality P5 Glove
    * 5DT Data Glove (all versions)
    * eMagin Z800 3D Visor HMD
    * Polhemus trackers (must be set to 115200 baud): IsoTrak II, FasTrak, Liberty, Patriot, Liberty Latus
    * Ascension trackers: Flock of Birds, MotionStar, etc.
    * Intersense trackers: InterTrax, InertiaCube, IS-300, IS-600, IS-900, IS-1200, etc.
    * WorldViz PPT trackers (all versions)
    * GameTrak (only as a joystick, no direct support)


Thanks!!!
http://litiopixel.blogspot.com
litiopixel.blogspot.com - Desarrollo videojuegos Indie · Pixel-Art · Retroinformática · Electrónica Development Indie Videogames · Pixel-Art · Retrocomputing · Electronic

dijster

I use my Xbox 360 pad, I just plug it in and it works.
I don't remember having to mess about or anything to get it running

Hark0

My test with wiimote (working on XP Sp3) not detected as a Josytick with GLB....  :blink:

Finally my brother has sended and joystick-pad (like ps3) for test...

;)
http://litiopixel.blogspot.com
litiopixel.blogspot.com - Desarrollo videojuegos Indie · Pixel-Art · Retroinformática · Electrónica Development Indie Videogames · Pixel-Art · Retrocomputing · Electronic