Determine right mouse button down?
Posted: Tue Nov 11, 2014 7:02 pm
I have:
No clue how to determine if the right mouse button is down, always returns false.
More testing: just tried keyDown(38) expecting it to use a keyCode but it requires a string (extremely odd that it wouldn't) so looked in cfg file and it's "move_forward" so tried that. Didn't work. Making great progress now, eh? ~laughs~
---
Just for fun: moving to a new coordinate progresses time by 0.0007 and turning (in place) progresses time by 0.00035 (so a 180 turn (2) is the same as moving one square). I'm sure that was an exciting FYI.
Code: Select all
onDrawGui = function(self, context)
print(self.go.id, context.mouseDown(2))
end,
More testing: just tried keyDown(38) expecting it to use a keyCode but it requires a string (extremely odd that it wouldn't) so looked in cfg file and it's "move_forward" so tried that. Didn't work. Making great progress now, eh? ~laughs~
---
Just for fun: moving to a new coordinate progresses time by 0.0007 and turning (in place) progresses time by 0.00035 (so a 180 turn (2) is the same as moving one square). I'm sure that was an exciting FYI.