GNUboy-port: input method
Pieter Colpaert
freepage at gmail.com
Sun Nov 2 14:45:49 CET 2008
Hi,
I did this on the gta01, so I don't know if this is going to work on the
freerunner: I've made a small script so you can play any gameboy (color)
game you'd like.
The problem is that the keyboard won't pop up when loading gnuboy, so I
forced it to be there all the time. I've also modded the keyboard
especially for a gameboy environment.
I assume you got the matchbox keyboard installed:
script:
#! /bin/bash
#script to load a gb(c)
#Made by Pieter Colpaert
killall matchbox-keyboard
matchbox-keyboard > /dev/null 2>&1 &
#cd to the gnuboy path:
cd /media/card/gnuboy*.*/
#pg.gbc is the game (notice: the game must be in the same dir as gnuboy)
./sdlgnuboy --fullscreen=0 --scale=2 pg.gbc
#after closing, it will reload the keyboard
killall matchbox-keyboard
matchbox-keyboard > /dev/null 2>&1 &
And i've added a keyboard-layout to matchbox ( if not exist, create:
~/.matchbox/keyboard.xml):
<layout id="GameBoy">
<row>
<space width="500"/>
<key>
<default display="b" action="s"/>
</key>
<key>
<default display="a" action="d" />
</key>
<space width="300"/>
<key>
<default display="↑" action="up" />
</key>
<space width="4000" extended="true" />
</row>
<row>
<key>
<default display=">" action="modifier:layout"/>
</key>
<key fill="true">
<!-- <default display="◀┛" action="return"/> -->
<default display="start" action="return"/>
</key>
<key>
<default display="slt" action="space" />
</key>
<space width="500" extended="true"/>
<key>
<default display="←" action="left" />
</key>
<key>
<default display="↓" action="down" />
</key>
<key>
<default display="→" action="right" />
</key>
</row>
</layout>
I also added a screenshot.
I hope this is helpfull to someone.
Pieter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot-2.png
Type: image/png
Size: 17716 bytes
Desc: not available
Url : http://lists.openmoko.org/pipermail/community/attachments/20081102/ade7eead/attachment.png
More information about the community
mailing list