GNUboy-port: input method

Thomas Bertani sylar1991 at gmail.com
Sun Nov 2 16:58:02 CET 2008


good job for the keyboard but the port was already done by me some
weeks ago: check on the mailing list

2008/11/2 Pieter Colpaert <freepage at gmail.com>:
> 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
>
> _______________________________________________
> Openmoko community mailing list
> community at lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
>
>


More information about the community mailing list