47 lines
1.0 KiB
Haxe
47 lines
1.0 KiB
Haxe
|
package kha.input;
|
||
|
|
||
|
import kha.SystemImpl;
|
||
|
import kha.input.Mouse;
|
||
|
|
||
|
class MouseImpl extends kha.input.Mouse {
|
||
|
public function new() {
|
||
|
super();
|
||
|
}
|
||
|
|
||
|
override public function lock(): Void {
|
||
|
SystemImpl.lockMouse();
|
||
|
}
|
||
|
|
||
|
override public function unlock(): Void {
|
||
|
SystemImpl.unlockMouse();
|
||
|
}
|
||
|
|
||
|
override public function canLock(): Bool {
|
||
|
return SystemImpl.canLockMouse();
|
||
|
}
|
||
|
|
||
|
override public function isLocked(): Bool {
|
||
|
return SystemImpl.isMouseLocked();
|
||
|
}
|
||
|
|
||
|
override public function notifyOnLockChange(func: Void->Void, error: Void->Void): Void {
|
||
|
SystemImpl.notifyOfMouseLockChange(func, error);
|
||
|
}
|
||
|
|
||
|
override public function removeFromLockChange(func: Void->Void, error: Void->Void): Void {
|
||
|
SystemImpl.removeFromMouseLockChange(func, error);
|
||
|
}
|
||
|
|
||
|
override public function hideSystemCursor(): Void {
|
||
|
SystemImpl.hideSystemCursor();
|
||
|
}
|
||
|
|
||
|
override public function showSystemCursor(): Void {
|
||
|
SystemImpl.showSystemCursor();
|
||
|
}
|
||
|
|
||
|
override public function setSystemCursor(cursor: MouseCursor): Void {
|
||
|
SystemImpl.setSystemCursor(cursor.getIndex());
|
||
|
}
|
||
|
}
|