DBPro code
n=load lua ("globals.lua")
m=load lua("keys.lua")
sync on
sync rate 60
do
if keystate(lua get int("up"))
move camera 0.25
endif
if keystate(lua get int("down"))
move camera -0.25
endif
if keystate(lua get int("right"))
turn camera right 0.25
endif
if keystate(lua get int("left"))
turn camera left 0.25
endif
sync
loop
lua script(globals.lua)
upkey=200;
downkey=208;
rightkey=205;
leftkey=203;
lua script(keys.lua)
up=upkey;
down=downkey;
right=rightkey;
left=leftkey;
It works. Just need to get all of the scancodes for the keys and stuff them into a variable
AMD Athlon 64 x2 Dual Core Processor 3800+,MMX 3DNOW (2CPUs)
1024 MB RAM
GeForce 7300 GT 512 MB