Mouse
Events
Mouse.onLeftDown.Connect(() => {
print("Left button down");
});
Mouse.onLeftUp.Connect(() => {
print("Left button up");
});Polling
if (Mouse.IsLeftButtonDown()) {
print("Left button down");
}
if (Mouse.IsRightButtonDown()) {
print("Right button down");
}
if (Mouse.IsMiddleButtonDown()) {
print("Middle button down");
}Movement
Events
Polling
Last updated