com.monkeycoder.monkeynes.gui
Class ButtonMapFactory
java.lang.Object
|
+--com.monkeycoder.monkeynes.gui.ButtonMapFactory
- public class ButtonMapFactory
- extends Object
This class creates ButtonMaps based on values found in the monkeynes.ini properties file.
Originally part of the MonkeyNES project.
- Author:
- David Stephens
|
Constructor Summary |
ButtonMapFactory()
Creates a new ButtonMapFactory and initializes itself with values found in
the monkeynes.ini properties file. |
|
Method Summary |
ButtonMap |
getButtonMap(int inMapType,
int inPort)
Gets a ButtonMap for a specific type of controller plugged into a specific port. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ButtonMapFactory
public ButtonMapFactory()
- Creates a new ButtonMapFactory and initializes itself with values found in
the
monkeynes.ini properties file.
getButtonMap
public ButtonMap getButtonMap(int inMapType,
int inPort)
- Gets a ButtonMap for a specific type of controller plugged into a specific port.
- Parameters:
inMapType - The controller type. Expects types as defined in NesController.inPort - The joystick port this controller is plugged into.
- Returns:
- The requested ButtonMap.
- See Also:
NesController