View Single Post
Posts: 203 | Thanked: 125 times | Joined on Jan 2011
#1463
Originally Posted by jflatt View Post
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

How can we use the second analog Jflat? I try on nova this:

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
gconftool-2 --set --type int /apps/preenv/nova/axis_2_axis 2
gconftool-2 --set --type int /apps/preenv/nova/axis_2_type 0
gconftool-2 --set --type int /apps/preenv/nova/axis_2_mouse 1
gconftool-2 --set --type int /apps/preenv/nova/axis_2_center 400
gconftool-2 --set --type int /apps/preenv/nova/axis_2_min 10
gconftool-2 --set --type int /apps/preenv/nova/axis_2_max 790
gconftool-2 --set --type int /apps/preenv/nova/axis_3_axis 3
gconftool-2 --set --type int /apps/preenv/nova/axis_3_type 1
gconftool-2 --set --type int /apps/preenv/nova/axis_3_mouse 1
gconftool-2 --set --type int /apps/preenv/nova/axis_3_center 240
gconftool-2 --set --type int /apps/preenv/nova/axis_3_max 470
gconftool-2 --set --type int /apps/preenv/nova/axis_3_min 10
gconftool-2 --set --type int /apps/preenv/nova/joy_14_key 14 # z
gconftool-2 --set --type int /apps/preenv/nova/joy_14_mouse 3
gconftool-2 --set --type int /apps/preenv/nova/joy_14_x 720
gconftool-2 --set --type int /apps/preenv/nova/joy_14_y 250
gconftool-2 --set --type int /apps/preenv/nova/joy_10_key 10 # w
gconftool-2 --set --type int /apps/preenv/nova/joy_10_mouse 3
gconftool-2 --set --type int /apps/preenv/nova/joy_10_x 780
gconftool-2 --set --type int /apps/preenv/nova/joy_10_y 460
gconftool-2 --set --type int /apps/preenv/nova/joy_15_key 15 # a
gconftool-2 --set --type int /apps/preenv/nova/joy_15_mouse 3
gconftool-2 --set --type int /apps/preenv/nova/joy_15_x 60
gconftool-2 --set --type int /apps/preenv/nova/joy_15_y 95
gconftool-2 --set --type int /apps/preenv/nova/joy_8_key 8 # q
gconftool-2 --set --type int /apps/preenv/nova/joy_8_mouse 3
gconftool-2 --set --type int /apps/preenv/nova/joy_8_x 701
gconftool-2 --set --type int /apps/preenv/nova/joy_8_y 384
gconftool-2 --set --type int /apps/preenv/nova/joy_11_key 11 # E
gconftool-2 --set --type int /apps/preenv/nova/joy_11_mouse 3
gconftool-2 --set --type int /apps/preenv/nova/joy_11_x 720
gconftool-2 --set --type int /apps/preenv/nova/joy_11_y 95
gconftool-2 --set --type int /apps/preenv/nova/joy_3_key 3 # space
gconftool-2 --set --type int /apps/preenv/nova/joy_3_mouse 3
gconftool-2 --set --type int /apps/preenv/nova/joy_3_x 30
gconftool-2 --set --type int /apps/preenv/nova/joy_3_y 30

All works ok but Second analog not. what i did wrong?