Opened 21 years ago

Closed 21 years ago

Last modified 6 years ago

#8311 closed patch

Support for Yopy Linux-based PDA (OS = Linupy)

Reported by: SF/kilobug Owned by: SF/khalek
Priority: normal Component: Ports
Version: Keywords:
Cc: Game:

Description

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

Ticket imported from: #878551. Ticket imported from: patches/416.

Attachments (2)

scummvm-linupy.patch (16.0 KB ) - added by SF/kilobug 21 years ago.
Patch for Linupy mode
scummvm-linupy-noflip.patch (8.7 KB ) - added by SF/kilobug 21 years ago.
A patch against CVS without xyflip code

Download all attachments as: .zip

Change History (11)

by SF/kilobug, 21 years ago

Attachment: scummvm-linupy.patch added

Patch for Linupy mode

comment:1 by SF/kilobug, 21 years ago

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

comment:2 by SF/khalek, 21 years ago

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)

by SF/kilobug, 21 years ago

Attachment: scummvm-linupy-noflip.patch added

A patch against CVS without xyflip code

comment:3 by SF/kilobug, 21 years ago

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 ?

comment:4 by SF/khalek, 21 years ago

Owner: set to SF/khalek

comment:5 by SF/khalek, 21 years ago

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?

comment:6 by SF/kilobug, 21 years ago

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.

comment:7 by SF/khalek, 21 years ago

Status: newclosed

comment:8 by SF/khalek, 21 years ago

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.

comment:9 by digitall, 6 years ago

Component: Ports
Note: See TracTickets for help on using tickets.