MCPcopy Create free account
hub / github.com/agateau/pixelwheels / InputMapper

Interface InputMapper

core/src/com/agateau/ui/InputMapper.java:24–35  ·  view source on GitHub ↗

Turn events of an input device into virtual keys

Source from the content-addressed store, hash-verified

22
23/** Turn events of an input device into virtual keys */
24public 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}

Callers 15

actMethod · 0.65
updateMethod · 0.65
isKeyPressedMethod · 0.65
getGameInputMethod · 0.65
isKeyPressedMethod · 0.65
isKeyPressedMethod · 0.65
actMethod · 0.65
findPressedKeyMethod · 0.65
isPauseKeyPressedMethod · 0.95
actMethod · 0.65
renderMethod · 0.65
isPauseKeyPressedMethod · 0.65

Implementers 3

GamepadInputMappercore/src/com/agateau/ui/GamepadInputMa
UiInputMappercore/src/com/agateau/ui/UiInputMapper.
KeyMappercore/src/com/agateau/ui/KeyMapper.java

Calls

no outgoing calls

Tested by

no test coverage detected