Turn events of an input device into virtual keys
| 22 | |
| 23 | /** Turn events of an input device into virtual keys */ |
| 24 | public interface InputMapper { |
| 25 | boolean isKeyPressed(VirtualKey vkey); |
| 26 | |
| 27 | boolean isKeyJustPressed(VirtualKey vkey); |
| 28 | |
| 29 | /** playerIdx is used by some input mappers (keyboard for example) to select default values */ |
| 30 | void loadConfig(Preferences preferences, String prefix, int playerIdx); |
| 31 | |
| 32 | void saveConfig(Preferences preferences, String prefix); |
| 33 | |
| 34 | boolean isAvailable(); |
| 35 | } |
no outgoing calls
no test coverage detected