protected void emitMouseWheel (int flags, double time, float x, float y, int delta) { if (mouseEnabled) { plat.dispatchEvent(mouseEvents, new Mouse.WheelEvent(flags, time, x, y, delta)); } } }
protected void emitKeyPress (int flags, double time, Key key, boolean down) { if (keyboardEnabled) { plat.dispatchEvent(keyboardEvents, new Keyboard.KeyEvent(flags, time, key, down)); } } protected void emitKeyTyped (double time, char keyChar) {
protected void emitKeyPress (int flags, double time, Key key, boolean down) { if (keyboardEnabled) { plat.dispatchEvent(keyboardEvents, new Keyboard.KeyEvent(flags, time, key, down)); } } protected void emitKeyTyped (double time, char keyChar) {
protected void emitKeyTyped (double time, char keyChar) { if (keyboardEnabled) { plat.dispatchEvent(keyboardEvents, new Keyboard.TypedEvent(0, time, keyChar)); } }
protected void emitMouseMotion (int flags, double time, float x, float y, float dx, float dy) { if (mouseEnabled) { plat.dispatchEvent(mouseEvents, new Mouse.MotionEvent(flags, time, x, y, dx, dy)); } } protected void emitMouseWheel (int flags, double time, float x, float y, int delta) {
protected void emitKeyTyped (double time, char keyChar) { if (keyboardEnabled) { plat.dispatchEvent(keyboardEvents, new Keyboard.TypedEvent(0, time, keyChar)); } }
protected void emitMouseWheel (int flags, double time, float x, float y, int delta) { if (mouseEnabled) { plat.dispatchEvent(mouseEvents, new Mouse.WheelEvent(flags, time, x, y, delta)); } } }
protected void emitMouseButton (int flags, double time, float x, float y, Mouse.ButtonEvent.Id btn, boolean down) { if (mouseEnabled) { plat.dispatchEvent(mouseEvents, new Mouse.ButtonEvent(flags, time, x, y, btn, down)); } } protected void emitMouseMotion (int flags, double time, float x, float y, float dx, float dy) {
protected void emitMouseButton (int flags, double time, float x, float y, Mouse.ButtonEvent.Id btn, boolean down) { if (mouseEnabled) { plat.dispatchEvent(mouseEvents, new Mouse.ButtonEvent(flags, time, x, y, btn, down)); } } protected void emitMouseMotion (int flags, double time, float x, float y, float dx, float dy) {
protected void emitMouseMotion (int flags, double time, float x, float y, float dx, float dy) { if (mouseEnabled) { plat.dispatchEvent(mouseEvents, new Mouse.MotionEvent(flags, time, x, y, dx, dy)); } } protected void emitMouseWheel (int flags, double time, float x, float y, int delta) {
protected void forward (Event.Kind kind, boolean isTouch, playn.core.Event.XY source) { if (enabled && events.hasConnections()) { Event event = new Event(source.flags, source.time, source.x, source.y, kind, isTouch); plat.dispatchEvent(events, event); // TODO: propagate prevent default back to original event } }
protected void forward (Event.Kind kind, boolean isTouch, playn.core.Event.XY source) { if (enabled && events.hasConnections()) { Event event = new Event(source.flags, source.time, source.x, source.y, kind, isTouch); plat.dispatchEvent(events, event); // TODO: propagate prevent default back to original event } }