map arrow keys
by Richard Bottoms · in Torque Game Engine · 02/13/2003 (9:04 am) · 1 replies
I've changed the mapping in default.bind.cs so that the arrow keys handle movement:
moveMap.bind( keyboard, left, moveleft );
moveMap.bind( keyboard, right, moveright );
moveMap.bind( keyboard, up, moveforward );
moveMap.bind( keyboard, down, movebackward );
moveMap.bind( keyboard, space, jump );
moveMap.bind( mouse, xaxis, yaw );
moveMap.bind( mouse, yaxis, pitch );
What I'd like have happen is for the combination of up [arrow + left arrow], etc. to spin the POV instead of the mouse.
Is that possible?
moveMap.bind( keyboard, left, moveleft );
moveMap.bind( keyboard, right, moveright );
moveMap.bind( keyboard, up, moveforward );
moveMap.bind( keyboard, down, movebackward );
moveMap.bind( keyboard, space, jump );
moveMap.bind( mouse, xaxis, yaw );
moveMap.bind( mouse, yaxis, pitch );
What I'd like have happen is for the combination of up [arrow + left arrow], etc. to spin the POV instead of the mouse.
Is that possible?
Torque Owner Simon Windmill
I'm also in the same position as I think you are, where you've had Torque a while but only recently had the chance to come back and actually do something with it, so I don't know if I'm doing it the best way, but I've modified gameConnection::getNextMove to constrain movement.