This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#6467 - New control scheme for Doom on Sansa e200
Attached to Project:
Rockbox
Opened by Piotr Jafiszow (yossa) - Friday, 22 December 2006, 00:52 GMT+2
Last edited by Steve Bavin (pondlife) - Wednesday, 10 October 2007, 12:43 GMT+2
Opened by Piotr Jafiszow (yossa) - Friday, 22 December 2006, 00:52 GMT+2
Last edited by Steve Bavin (pondlife) - Wednesday, 10 October 2007, 12:43 GMT+2
|
DetailsPatch changes controls for Doom:
Forward: rec/up Left/Right: scrollwheel (it needs a lot of scrolls for large turns, but hopefully it can be modified to work better in the future) Back: down Shoot/Enter (menu): select Change weapon: left Open: right Esc: power |
This task depends upon
Example code of such a hack:
[..]
#define QUICKREVERSE (short)3072 // 180 degree reverse
[..]
if (gamekeydown[key_left])
{
cmd->angleturn += QUICKREVERSE;
gamekeydown[key_left] = false;
}
if (gamekeydown[key_right])
{
cmd->angleturn -= QUICKREVERSE;
gamekeydown[key_right] = false;
}
[...]
More skilled coders should probably be able to fix the problem in a much more elegant way. But since the scrollwheel code for sansa is to be modified to interrupt based when possible, this should probably be put off to a later date.
Forward: rec
Left/Right: up/down (suits rotated display)
Back: left
Shoot: select
Open: right
Change weapon: scroll up
confirm (menu): scroll down
Esc: power
The REC button for moving forward allows to move and turn at once without much strain, creating a more true to the original controls feel.
PS. Before first use you will likely have to remove the default.dfg file from your WAD directory, especially if you tried to set up your own controls via the plugin menu.
if you could be of any help, i'd be very grateful
i have one more question though..
would this patch, if working, be the thing that provides the coding for the scrolling in Doom to work both directions?...i've gotten it to scroll right using the "key on" key setting for the "right" control key, though the "key off" doesn't work the opposite way(left)....
i'm just trying to figure out if this would be the patch i'd need, if it were to work as it was programmed to.