Donate Share

ScummVM

Tracker: Patches

5 Support for Yopy Linux-based PDA (OS = Linupy) - ID: 878551
Last Update: Comment added ( khalek )

Here is a patch to add support for the Yopy Linux-based
PDA.

This patch contains three different parts:

- changes to the Makefile and configure script to allow
easy cross-compilation (./configure --target=linupy
--sdl-config=/opt/arm-linux/bin/sdl-config
--disable-mad; make is enough)

- change some key bindings if LINUPY is defined,
because Yopy has no "alt" key, but some nice "END" "OK"
and "ACTION" key (I mapped END to quit, OK to skip
cinematics and ACTION to the default action key)

- added a xyflip video mode, because Yopy's screen is
240x320. This one is a bit dirty, I've to force a full
redisplay because I don't fully understand the
redraw_screen function... I'll try to improve that later.

Patch done from ScummVM 0.5.1


Gael Le Mignot ( kilobug ) - 2004-01-16 22:01

5

Closed

Accepted

Jonathan Gray

None

None

Public


Comments ( 6 )

Date: 2004-01-22 04:33
Sender: khalek

Logged In: YES
user_id=59347

Applied with minor changes.
The define is put into config.h which is included in
sdl-common.cpp and I fixed a spelling error.

Hopefully I didn't break anything in the process.


Date: 2004-01-21 11:39
Sender: kilobug

Logged In: YES
user_id=54326

This device ships with Linux, but there are many others
arm-linux devices (sharp zaurus for example). I tried to use
LINUPY for things which are specific to the Yopy (like the
scancode of special keys).

./configure --host=arm-linux will enable cross-compilation
to a generic arm-linux device, ./configure --host=linupy
will enable cross-compilation to arm-linux and the special
key bindings for Yopy. (and a --host=qtopia or --host=zaurus
or whatever could be added to enable arm-linux and special
key bindings).

For the rotating patch, it's not useful anymore, since
recent versions of Linupy (the port of Linux to Yopy)
supports the RANDR extension, you can rotate the display
with 'xrandr -o 3' and 'xrandr -o 0' to go back.


Date: 2004-01-21 11:28
Sender: khalek

Logged In: YES
user_id=59347

Is there any particular reason why you use linupy in the
defines and the configure script? Doesn't this device ship
with Linux installed by default?


Date: 2004-01-17 13:39
Sender: kilobug

Logged In: YES
user_id=54326

Ok, I did again the patch against the CVS version, and
without the xyflip code... but I still cannot find the
environment variable to rotate the screen, could you give me
an hint ?


Date: 2004-01-17 05:12
Sender: khalek

Logged In: YES
user_id=59347

apparently you can change orientation via an environment
variable, so most of this patch isn't needed besides the
button mapping and cross compile stuff (which should use the
configure file)


Date: 2004-01-16 22:57
Sender: kilobug

Logged In: YES
user_id=54326

I've a weird bug with the stylus too... I'll check that and
make a patch against the CVS version tomorrow.


Attached Files ( 2 )

Filename Description Download
scummvm-linupy.patch Patch for Linupy mode Download
scummvm-linupy-noflip.patch A patch against CVS without xyflip code Download

Changes ( 6 )

Field Old Value Date By
status_id Open 2004-01-22 04:33 khalek
resolution_id None 2004-01-22 04:33 khalek
close_date - 2004-01-22 04:33 khalek
assigned_to nobody 2004-01-21 11:28 khalek
File Added 73797: scummvm-linupy-noflip.patch 2004-01-17 13:39 kilobug
File Added 73754: scummvm-linupy.patch 2004-01-16 22:01 kilobug