26 lines
570 B
Java
26 lines
570 B
Java
package it.cavallium.warppi.device.input;
|
|
|
|
public class InputManager {
|
|
private final KeyboardInputDevice keyboard;
|
|
private final TouchInputDevice touchDevice;
|
|
|
|
public InputManager(KeyboardInputDevice keyboard, TouchInputDevice touchscreen) {
|
|
this.keyboard = keyboard;
|
|
this.touchDevice = touchscreen;
|
|
}
|
|
|
|
public KeyboardInputDevice getKeyboard() {
|
|
return keyboard;
|
|
}
|
|
|
|
public TouchInputDevice getTouchDevice() {
|
|
return touchDevice;
|
|
}
|
|
|
|
public void initialize() {
|
|
this.keyboard.initialize();
|
|
this.touchDevice.initialize();
|
|
}
|
|
|
|
}
|