net.ctdp.rfdynhud.input
Class InputMappingsManager
java.lang.Object
net.ctdp.rfdynhud.input.InputMappingsManager
public class InputMappingsManager
- extends java.lang.Object
This manager manages mappings of InputAction
s to input device components (buttons and keys).
- Author:
- Marvin Froehlich (CTDP)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONFIG_FILE_NAME
public static final java.lang.String CONFIG_FILE_NAME
- See Also:
- Constant Field Values
InputMappingsManager
public InputMappingsManager(RFDynHUD rfDynHUD)
getBuffer
public final java.nio.ByteBuffer getBuffer()
isPluginEnabled
public final boolean isPluginEnabled()
unparseModifierMask
public static java.lang.String unparseModifierMask(int modifierMask)
getComponentNameForTable
public static java.lang.String getComponentNameForTable(InputMapping mapping)
parseMapping
public static java.lang.Object[] parseMapping(int lineNr,
java.lang.String key,
java.lang.String value,
InputDeviceManager devManager)
loadMappings
public InputMappings loadMappings(GameFileSystem fileSystem,
InputDeviceManager devManager)
update
public int update(GameEventsManager eventsManager,
WidgetsDrawingManager widgetsManager,
LiveGameData gameData,
boolean isEditorMode,
int modifierMask)
- Parameters:
eventsManager
- widgetsManager
- the manager to fire widget events ongameData
- the live game dataisEditorMode
- editor mode? (certainly false)modifierMask
- the key modifier mask
- Returns:
- -1 if plugin got disabled, 0 if plugin was and is disabled, 1 if plugin was and is enabled., 2 if plugin got enabled.