ManaPlus
|
#include "input/touch/touchactions.h"
#include "input/inputmanager.h"
#include "input/mouseinput.h"
#include "input/touch/touchmanager.h"
#include "debug.h"
Go to the source code of this file.
Macros | |
#define | impHandler(name) void name(const MouseInput &mouseInput) |
#define | impHandler0(name) void name(const MouseInput &mouseInput A_UNUSED) |
Functions | |
bool | padClicked (false) |
void | setHalfJoyPad (const int s) |
static void | moveChar (int x, int y) |
void | padClick (const MouseInput &mouseInput) |
void | padEvents (const MouseInput &mouseInput) |
void | padOut (const MouseInput &mouseInput) |
void | padUp (const MouseInput &mouseInput) |
Variables | |
int | halfJoyPad = 50 |
#define impHandler | ( | name | ) | void name(const MouseInput &mouseInput) |
Definition at line 34 of file touchactions.cpp.
#define impHandler0 | ( | name | ) | void name(const MouseInput &mouseInput A_UNUSED) |
Definition at line 35 of file touchactions.cpp.
|
static |
Definition at line 42 of file touchactions.cpp.
References halfJoyPad, inputManager, InputAction::MOVE_DOWN, InputAction::MOVE_LEFT, InputAction::MOVE_RIGHT, InputAction::MOVE_UP, TouchManager::setActionActive(), touchManager, InputManager::updateConditionMask(), x, and y.
Referenced by padClick(), padEvents(), padOut(), and padUp().
void padClick | ( | const MouseInput & | mouseInput | ) |
Definition at line 105 of file touchactions.cpp.
References moveChar(), and padClicked().
Referenced by TouchManager::loadPad().
bool padClicked | ( | false | ) |
Referenced by padClick(), padEvents(), padOut(), and padUp().
void padEvents | ( | const MouseInput & | mouseInput | ) |
Definition at line 111 of file touchactions.cpp.
References moveChar(), MouseEventType::MOVED, and padClicked().
Referenced by TouchManager::loadPad().
void padOut | ( | const MouseInput & | mouseInput | ) |
Definition at line 120 of file touchactions.cpp.
References halfJoyPad, moveChar(), and padClicked().
Referenced by TouchManager::loadPad().
void padUp | ( | const MouseInput & | mouseInput | ) |
Definition at line 126 of file touchactions.cpp.
References halfJoyPad, moveChar(), and padClicked().
Referenced by TouchManager::loadPad().
void setHalfJoyPad | ( | const int | s | ) |
Definition at line 37 of file touchactions.cpp.
References halfJoyPad.
Referenced by TouchManager::init(), and TouchManager::optionChanged().
int halfJoyPad = 50 |
Definition at line 32 of file touchactions.cpp.
Referenced by moveChar(), padOut(), padUp(), and setHalfJoyPad().