Definition at line 107 of file mxvk_nanobind.cpp.
◆ PythonEvent()
| anonymous_namespace{mxvk_nanobind.cpp}::PythonEvent::PythonEvent |
( |
const SDL_Event * | event | ) |
|
|
inlineexplicit |
Definition at line 109 of file mxvk_nanobind.cpp.
109 : value(*event) {
110 if (value.type == SDL_EVENT_TEXT_INPUT && event->text.text != nullptr)
111 text_value = event->text.text;
112 }
◆ button()
| uint8_t anonymous_namespace{mxvk_nanobind.cpp}::PythonEvent::button |
( |
| ) |
const |
|
inlinenodiscard |
Definition at line 147 of file mxvk_nanobind.cpp.
bool mouse_button_up() const
bool mouse_button_down() const
◆ clicks()
| uint8_t anonymous_namespace{mxvk_nanobind.cpp}::PythonEvent::clicks |
( |
| ) |
const |
|
inlinenodiscard |
◆ down()
| bool anonymous_namespace{mxvk_nanobind.cpp}::PythonEvent::down |
( |
| ) |
const |
|
inlinenodiscard |
◆ key()
| int32_t anonymous_namespace{mxvk_nanobind.cpp}::PythonEvent::key |
( |
| ) |
const |
|
inlinenodiscard |
◆ key_down()
| bool anonymous_namespace{mxvk_nanobind.cpp}::PythonEvent::key_down |
( |
| ) |
const |
|
inlinenodiscard |
◆ key_up()
| bool anonymous_namespace{mxvk_nanobind.cpp}::PythonEvent::key_up |
( |
| ) |
const |
|
inlinenodiscard |
◆ modifiers()
| uint16_t anonymous_namespace{mxvk_nanobind.cpp}::PythonEvent::modifiers |
( |
| ) |
const |
|
inlinenodiscard |
◆ mouse_button_down()
| bool anonymous_namespace{mxvk_nanobind.cpp}::PythonEvent::mouse_button_down |
( |
| ) |
const |
|
inlinenodiscard |
Definition at line 124 of file mxvk_nanobind.cpp.
124{ return value.type == SDL_EVENT_MOUSE_BUTTON_DOWN; }
◆ mouse_button_up()
| bool anonymous_namespace{mxvk_nanobind.cpp}::PythonEvent::mouse_button_up |
( |
| ) |
const |
|
inlinenodiscard |
Definition at line 125 of file mxvk_nanobind.cpp.
125{ return value.type == SDL_EVENT_MOUSE_BUTTON_UP; }
◆ mouse_motion()
| bool anonymous_namespace{mxvk_nanobind.cpp}::PythonEvent::mouse_motion |
( |
| ) |
const |
|
inlinenodiscard |
Definition at line 123 of file mxvk_nanobind.cpp.
123{ return value.type == SDL_EVENT_MOUSE_MOTION; }
◆ mouse_wheel()
| bool anonymous_namespace{mxvk_nanobind.cpp}::PythonEvent::mouse_wheel |
( |
| ) |
const |
|
inlinenodiscard |
Definition at line 126 of file mxvk_nanobind.cpp.
126{ return value.type == SDL_EVENT_MOUSE_WHEEL; }
◆ relative_x()
| float anonymous_namespace{mxvk_nanobind.cpp}::PythonEvent::relative_x |
( |
| ) |
const |
|
inlinenodiscard |
◆ relative_y()
| float anonymous_namespace{mxvk_nanobind.cpp}::PythonEvent::relative_y |
( |
| ) |
const |
|
inlinenodiscard |
◆ repeat()
| bool anonymous_namespace{mxvk_nanobind.cpp}::PythonEvent::repeat |
( |
| ) |
const |
|
inlinenodiscard |
◆ scancode()
| uint32_t anonymous_namespace{mxvk_nanobind.cpp}::PythonEvent::scancode |
( |
| ) |
const |
|
inlinenodiscard |
◆ text()
| const std::string & anonymous_namespace{mxvk_nanobind.cpp}::PythonEvent::text |
( |
| ) |
const |
|
inlinenodiscard |
◆ timestamp()
| uint64_t anonymous_namespace{mxvk_nanobind.cpp}::PythonEvent::timestamp |
( |
| ) |
const |
|
inlinenodiscard |
◆ type()
| uint32_t anonymous_namespace{mxvk_nanobind.cpp}::PythonEvent::type |
( |
| ) |
const |
|
inlinenodiscard |
◆ wheel_flipped()
| bool anonymous_namespace{mxvk_nanobind.cpp}::PythonEvent::wheel_flipped |
( |
| ) |
const |
|
inlinenodiscard |
◆ wheel_ticks_x()
| int32_t anonymous_namespace{mxvk_nanobind.cpp}::PythonEvent::wheel_ticks_x |
( |
| ) |
const |
|
inlinenodiscard |
◆ wheel_ticks_y()
| int32_t anonymous_namespace{mxvk_nanobind.cpp}::PythonEvent::wheel_ticks_y |
( |
| ) |
const |
|
inlinenodiscard |
◆ wheel_x()
| float anonymous_namespace{mxvk_nanobind.cpp}::PythonEvent::wheel_x |
( |
| ) |
const |
|
inlinenodiscard |
◆ wheel_y()
| float anonymous_namespace{mxvk_nanobind.cpp}::PythonEvent::wheel_y |
( |
| ) |
const |
|
inlinenodiscard |
◆ x()
| float anonymous_namespace{mxvk_nanobind.cpp}::PythonEvent::x |
( |
| ) |
const |
|
inlinenodiscard |
Definition at line 127 of file mxvk_nanobind.cpp.
127 {
129 return value.motion.x;
131 return value.button.x;
133 return value.wheel.mouse_x;
134 return 0.0F;
135 }
◆ y()
| float anonymous_namespace{mxvk_nanobind.cpp}::PythonEvent::y |
( |
| ) |
const |
|
inlinenodiscard |
Definition at line 136 of file mxvk_nanobind.cpp.
136 {
138 return value.motion.y;
140 return value.button.y;
142 return value.wheel.mouse_y;
143 return 0.0F;
144 }
The documentation for this class was generated from the following file: