[hatari-devel] Crosscompiling Hatari for GP2X Wiz

Eero Tamminen oak at helsinkinet.fi
Tue Mar 29 22:36:53 CEST 2011


Hi,

On maanantai 28 maaliskuu 2011, Matthias Arndt wrote:
> > That's similar to N800, so there shouldn't be any problem.
> 
> I just want to make sure we talk about the same functionality:
> 
> IF Button X on SDL_JOYSTICK(xy) IS PRESSED
>  SIMULATE ATARI KEYPRESS <abc>
> ENDIF
> 
> IF Button Y on SDL_JOYSTICK(xy) IS PRESSED
> SIMULATE HOST KEYPRESS <abc>  e.q. open GUI, quit emulator
> ENDIF

Oh, sorry, you were talking about mapping actual SDL joystick events
to Atari keys.  For that there's no support in Hatari.

It's such a rare case that I don't think it should be in the UI, but if you
can cleanly add support for configuring it from the config file, it's
inclusion to Hatari could be considered.


Btw. On Nokia 770, N800 & N810 there was this directional thing used for
input focus navigation:
	http://en.wikipedia.org/wiki/Nokia_770_Internet_Tablet
	http://en.wikipedia.org/wiki/N800
	http://en.wikipedia.org/wiki/Nokia_N810

which could be used as a joystick, but it gave (arrow) key events.
It's usability wasn't even close to a real joystick though.

Does the GP2X give joy events for its joystick, or are they mapped to
joystick events just inside the GP2X SDL library?


> If so, how can I determine which event number I have to map as I only
> have the standard SDL_Joystick defines available which give numbers
> between 0 and 16.

Check doc/keymap-sample.txt on how to map the keys.

Attached are Atari and SDL helper programs.

(Hm, maybe I should add them under Hatari tests/-dir...)


	- Eero
-------------- next part --------------
A non-text attachment was scrubbed...
Name: keys.tar.gz
Type: application/x-compressed-tar
Size: 11398 bytes
Desc: not available
URL: <https://lists.berlios.de/pipermail/hatari-devel/attachments/20110329/12bea2fb/attachment.bin>


More information about the hatari-devel mailing list