Public Member Functions | |
| ActionMap () | |
| DiscreteInputEventHandler | Bind (XI.Keys key, DiscreteInputEventType type, DiscreteInputEventHandler handler) |
| Binds the specified discrete input event handler to be called when the specified key generates the specified input event type. | |
| DiscreteInputEventHandler | Unbind (XI.Keys key, DiscreteInputEventType type) |
| Unbinds the input event handler from the specified key and event type combination. | |
| DiscreteInputEventHandler | Bind (MouseButtons button, DiscreteInputEventType type, DiscreteInputEventHandler handler) |
| Binds the specified discrete input event handler to be called when the specified mouse button generates the specified input event type. | |
| DiscreteInputEventHandler | Unbind (MouseButtons button, DiscreteInputEventType type) |
| Unbinds the input event handler from the specified mouse button and event type combination. | |
| void | ProcessInput (XI.KeyboardState keyboardCurrent, XI.KeyboardState keyboardPrev, XI.MouseState mouseCurrent, XI.MouseState mousePrev, GameTime time) |
| Processes the current and previous input states to determine which input events have occurred, and triggers the corresponding input event handlers. | |
Public Attributes | |
| event MouseMoveEventHandler | MouseMoved |
| Event called when the mouse position changes. | |
| event MouseScrollEventHandler | MouseScrolled |
| Event called when the mouse scroll wheel value changes. | |
Private Attributes | |
| Dictionary< DiscreteInputEventType, KeyMap > | mKeyEvents |
| Dictionary< DiscreteInputEventType, ButtonMap > | mMouseButtonEvents |
Classes | |
| class | ButtonMap |
| class | KeyMap |
| Mindshifter.ActionMap.ActionMap | ( | ) |
| DiscreteInputEventHandler Mindshifter.ActionMap.Bind | ( | XI.Keys | key, | |
| DiscreteInputEventType | type, | |||
| DiscreteInputEventHandler | handler | |||
| ) |
Binds the specified discrete input event handler to be called when the specified key generates the specified input event type.
| key | The key that will trigger the input handler | |
| type | The input event type that will trigger the input handler | |
| handler | The input handler to call when the specified input event occurrs |
| DiscreteInputEventHandler Mindshifter.ActionMap.Unbind | ( | XI.Keys | key, | |
| DiscreteInputEventType | type | |||
| ) |
Unbinds the input event handler from the specified key and event type combination.
| key | The key from which to unbind the current input event handler | |
| type | The input event type for the specified key |
| DiscreteInputEventHandler Mindshifter.ActionMap.Bind | ( | MouseButtons | button, | |
| DiscreteInputEventType | type, | |||
| DiscreteInputEventHandler | handler | |||
| ) |
Binds the specified discrete input event handler to be called when the specified mouse button generates the specified input event type.
| button | The mouse button that will trigger the input handler | |
| type | The input event type that will trigger the input handler | |
| handler | The input handler to call when the specified input event occurrs |
| DiscreteInputEventHandler Mindshifter.ActionMap.Unbind | ( | MouseButtons | button, | |
| DiscreteInputEventType | type | |||
| ) |
Unbinds the input event handler from the specified mouse button and event type combination.
| button | The mouse button from which to unbind the current input event handler | |
| type | The input event type for the specified mouse button |
| void Mindshifter.ActionMap.ProcessInput | ( | XI.KeyboardState | keyboardCurrent, | |
| XI.KeyboardState | keyboardPrev, | |||
| XI.MouseState | mouseCurrent, | |||
| XI.MouseState | mousePrev, | |||
| GameTime | time | |||
| ) |
Processes the current and previous input states to determine which input events have occurred, and triggers the corresponding input event handlers.
| keyboardCurrent | The current keyboard state | |
| keyboardPrev | The previous keyboard state | |
| mouseCurrent | The current mouse state | |
| mousePrev | The previous mouse state | |
| time | The current game time |
Dictionary<DiscreteInputEventType, KeyMap> Mindshifter.ActionMap.mKeyEvents [private] |
Dictionary<DiscreteInputEventType, ButtonMap> Mindshifter.ActionMap.mMouseButtonEvents [private] |
| event MouseMoveEventHandler Mindshifter.ActionMap.MouseMoved |
Event called when the mouse position changes.
| event MouseScrollEventHandler Mindshifter.ActionMap.MouseScrolled |
Event called when the mouse scroll wheel value changes.
1.5.1-p1