Added mouse events
This commit is contained in:
@@ -99,4 +99,25 @@ fn onKeyUp(node: opaque, event: string) {
|
||||
xspeed = 0;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn onMouseMotion(node: opaque, x: int, y: int, xrel: int, yrel: int) {
|
||||
print "entity.toy:onMouseMotion()";
|
||||
//TODO: mouse motion
|
||||
}
|
||||
|
||||
fn onMouseButtonDown(node: opaque, x: int, y: int, button: string) {
|
||||
print "entity.toy:onMouseButtonDown()";
|
||||
//TODO: mouse button down
|
||||
}
|
||||
|
||||
fn onMouseButtonUp(node: opaque, x: int, y: int, button: string) {
|
||||
print "entity.toy:onMouseButtonUp()";
|
||||
//TODO: mouse button up
|
||||
}
|
||||
|
||||
fn onMouseWheel(node: opaque, x: int, y: int) {
|
||||
print "entity.toy:onMouseWheel()";
|
||||
//TODO: mouse wheel
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user