Go to the source code of this file.
◆ WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN |
◆ getAction()
Term::Button::Action getAction |
( |
const std::int32_t & | old_state, |
|
|
const std::int32_t & | state, |
|
|
const std::int32_t & | type ) |
Definition at line 41 of file input.cpp.
42{
44 else if(((old_state - state) >> (type - 1)) == 1)
46 else
48}
◆ sendString()
Definition at line 70 of file input.cpp.
71{
72 if(!str.empty())
73 {
75 str.clear();
76 }
77}
void push(const Term::Event &value, const std::size_t &occurrence=1)
std::string to_narrow(const std::wstring &wstr)
◆ setButton()
Term::Button setButton |
( |
const std::int32_t & | old_state, |
|
|
const std::int32_t & | state ) |
Definition at line 49 of file input.cpp.
50{
52 action =
getAction(old_state, state, FROM_LEFT_1ST_BUTTON_PRESSED);
54
55 action =
getAction(old_state, state, FROM_LEFT_2ND_BUTTON_PRESSED);
57
58 action =
getAction(old_state, state, FROM_LEFT_3RD_BUTTON_PRESSED);
60
61 action =
getAction(old_state, state, FROM_LEFT_4TH_BUTTON_PRESSED);
63
64 action =
getAction(old_state, state, RIGHTMOST_BUTTON_PRESSED);
66
68}