XRacer
stevenmess2004
Posts: 1,102
Has anyone been able to modify this to run on a proto board with a keyboard before I start trying?
Comments
edit: just comment after from the line after
racer_bg000
to the end of the file [noparse]:)[/noparse] add in keyboard
· key.start(26,27) ' whatever pins the keyboard are on
around the tv.start and snd.start,
then·add
· if(key.keystate(KB_RIGHT_ARROW))
·· nes_bits &=!NES0_RIGHT
· if(key.keystate(KB_LEFT_ARROW))
·· nes_bits &=!NES0_LEFT
· if(key.keystate(KB_UP_ARROW))
·· nes_bits &=!NES0_A
· if(key.keystate(KB_DOWN_ARROW))
·· nes_bits &=!NES0_B
· if(key.keystate(KB_ENTER))
·· nes_bits &=!NES0_START
· if(key.keystate(KB_SPACE))
·· nes_bits &=!NES0_SELECT
before
· nes_bits := (!nes_bits & $FFFF)
oh, and add
· ' control keys
· KB_LEFT_ARROW· = $C0
· KB_RIGHT_ARROW = $C1
· KB_UP_ARROW··· = $C2
· KB_DOWN_ARROW· = $C3
· KB_ESC········ = $CB
· KB_SPACE······ = $20
· KB_ENTER······ = $0D
into the CON section
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://www.propgfx.co.uk/forum/·home of the PropGFX Lite
Post Edited (Baggers) : 3/30/2008 11:06:14 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://www.propgfx.co.uk/forum/·home of the PropGFX Lite
·