|
Nebula
|
#include "core/refcounted.h"#include "core/singleton.h"#include "core/ptr.h"#include "input/key.h"#include "input/modifier.h"#include "input/mousebutton.h"#include "input/gamepad.h"#include "input/keyboard.h"#include "input/mouse.h"#include "math/vec2.h"#include "util/array.h"#include "util/dictionary.h"#include "util/fixedarray.h"#include "util/string.h"#include "util/stringatom.h"Go to the source code of this file.
Classes | |
| struct | Input::ActionBinding |
| One control. More... | |
| struct | Input::ActionEntry |
| An action as the map holds it. More... | |
| struct | Input::ActionState |
| One action for one player, as this frame built it. More... | |
| struct | Input::ActionPrev |
| What an edge is measured against. More... | |
| struct | Input::PlayerDevice |
| One device a player can answer from. More... | |
| struct | Input::PlayerSlot |
| A player as the devices its bindings can answer from. More... | |
| class | Input::ActionMap |
| An action is a name for something the game asks for, such as "Jump". More... | |
Namespaces | |
| namespace | Input |
| FIXME! | |
Typedefs | |
| using | Input::ActionId = IndexT |
| The index of an action in the map. A name the map does not have answers with InvalidAction. | |
Enumerations | |
| enum | Input::DeviceType { Input::InvalidDevice = 0 , Input::KeyboardMouseDevice , Input::GamePadDevice } |
| enum | Input::SourceType { Input::InvalidSource = 0 , Input::KeySource , Input::MouseButtonSource , Input::GamePadButtonSource , Input::GamePadAxisSource , Input::MouseMoveSource , Input::MouseWheelSource } |
| enum | Input::ActionKind { Input::DigitalAction = 0 , Input::AnalogAction } |
Functions | |
| ActionId | Input::FindAction (const Util::String &name) |
| The reads as code uses them. | |
| bool | Input::IsActionHeld (ActionId action, IndexT playerIndex=0) |
| bool | Input::IsActionPressed (ActionId action, IndexT playerIndex=0) |
| bool | Input::IsActionReleased (ActionId action, IndexT playerIndex=0) |
| float | Input::GetActionValue (ActionId action, IndexT playerIndex=0) |
| float | Input::GetAxis (ActionId negativeAction, ActionId positiveAction, IndexT playerIndex=0) |
| Math::vec2 | Input::GetAxis2 (ActionId negativeX, ActionId positiveX, ActionId negativeY, ActionId positiveY, IndexT playerIndex=0) |
| IndexT | Input::GetLastActionPlayer (ActionId action) |
Variables | |
| constexpr ActionId | Input::InvalidAction = InvalidIndex |
| constexpr IndexT | Input::MaxActions = 256 |
| The size of the state block. | |
| constexpr IndexT | Input::MaxPlayers = 4 |
| constexpr IndexT | Input::MaxBindingsPerAction = 8 |
| constexpr IndexT | Input::MaxDevicesPerPlayer = 2 |