View Single Post
jflatt's Avatar
Posts: 534 | Thanked: 723 times | Joined on Oct 2009
#1445
I've got a couple updates. First off, I got some scaling issues resolved, which should mean Tiger Woods 09 is fully working, and Speed Forge scales the game properly now. Also, I got Sparkle running, but not sure if it's responding to input or not. Crusade of Destiny should scale properly, I think it didn't before. Which leads me to...
Added back the
Code:
screen_width
screen_height
screen_rotation
settings to per-game gconf configuration. This is only for those who want their aspect ratio perfect, or to re-rotate the one or two quirky games. If the game needs these settings, then we need to fix them still.

Also, I've added a colorkey to get cinematics showing. The colorkey is set for black. If you look at your desktop while a cinematic is playing, you'll notice everything black is now replaced with a movie. I think a better workaround is to pick any other color (green, magenta) for the colorkey and set the sdl window to that color.

Then there's also joystick support. You can already use the default sixad button mappings, but we can do real SDL support if you remove the
Code:
/usr/share/hal/fdi/policy/20thirdparty/20-x11-sony-sixaxis.fdi
I've only tested so far with the SixAxis. I've got some Wii remotes, I'll work on them next. These are the gconf keys
Code:
joy_0_key
joy_0_mouse
joy_0_x
joy_0_y
Where the 0 button code can replaced with any of these
Code:
L1 10
L2 8
R1 11
R2 9
Up 4
Right 5
Down 6
Left 7
Select 0
Start 3
PS 16
Triangle 12
Circle 13
X 14
Square 15
Left Button 1
Right Button 2
If you want to get crazy, run Asphalt5, and then move the SixAxis around. Accelerometer steering! Just be sure that enable_dpad is not on.

If you do have enable_dpad on, it will allow you to use the axis on the controller too. These are the gconf keys
Code:
axis_0_axis
axis_0_mouse
axis_0_type
axis_0_center
axis_0_min
axis_0_max
Where the 0 can replaced by any of these
Code:
L1 14
L2 12
R1 15
R2 13
Up 8
Right 9
Down 10
Left 11
Triangle 16
Circle 17
X 18
Square 19
Left Stick X 0
Left Stick Y 1
Right Stick X 2
Right Stick Y 3
X 5
Y 4
Z 6
I have mapped up some preliminary dpad controls to axis 0 and 1. I need to rework it to allow for different numbers and types of movement, so don't complain about it just yet. If you want to map the dpad, here's an example for nova (type 0 is x-axis, type 1 is y-axis)
Code:
gconftool-2 --set --type int /apps/preenv/nova/enable_dpad 1
gconftool-2 --set --type int /apps/preenv/nova/axis_0_axis 0
gconftool-2 --set --type int /apps/preenv/nova/axis_0_type 0
gconftool-2 --set --type int /apps/preenv/nova/axis_0_mouse 2
gconftool-2 --set --type int /apps/preenv/nova/axis_0_center 119
gconftool-2 --set --type int /apps/preenv/nova/axis_0_min 20
gconftool-2 --set --type int /apps/preenv/nova/axis_0_max 222
gconftool-2 --set --type int /apps/preenv/nova/axis_1_axis 1
gconftool-2 --set --type int /apps/preenv/nova/axis_1_type 1
gconftool-2 --set --type int /apps/preenv/nova/axis_1_mouse 2
gconftool-2 --set --type int /apps/preenv/nova/axis_1_center 376
gconftool-2 --set --type int /apps/preenv/nova/axis_1_max 466
gconftool-2 --set --type int /apps/preenv/nova/axis_1_min 280
 

The Following 7 Users Say Thank You to jflatt For This Useful Post: