[hatari-devel] Crosscompiling Hatari for GP2X Wiz
Eero Tamminen
oak at helsinkinet.fi
Wed Mar 30 22:43:39 CEST 2011
Hi,
On keskiviikko 30 maaliskuu 2011, Matthias Arndt wrote:
> > Actually, I started to think that the joystick thing could be quite
> > inconvenient for the user. He would need to use Hatari options dialog
> > to switch to normal joystick after he's handled the key press.
>
> Well, I did not intend to have a full keyboard emulation for the
> beginning.
>
> Just X presses Atari SPACE, Y presses ESC, B pressed RETURN, A is
> joystick fire
>
> something else opens the GUI or stops emulation.
Ah, that's sounds better, I keep forgetting that the joysticks on these
new-fangled devices have actually more buttons than the old Atari ones. :-)
> Mouse support is by touchscreen, the joypad inputs joystick stuffs.
> It's not perfect but enough for many games and watching demos.
>
> If this works, I will consider implementing an onscreen touch keyboard.
> That would be spawend by a joystick key as well.
I would assume there to be already SDL code that can be used for that,
but popping up some grid of letters & numbers shouldn't be that hard
to do either and it could be useful also on other devices.
If the keys aren't needed that often and only a single one at the time, one
more option for an onscreen keyboard would be directly in the keyboard
options dialog.
Press & release of given key code can be simulated with:
IKBD_PressSTKey(keycode, true);
IKBD_PressSTKey(keycode, false);
And press & release of a single letter with:
Keymap_SimulateCharacter(letter, true);
Keymap_SimulateCharacter(letter, false);
- Eero
More information about the hatari-devel
mailing list