mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-05 06:00:33 -04:00
doubleclicks, old savegame ui
This commit is contained in:
parent
fed5a04323
commit
1e7bbcb245
12 changed files with 334 additions and 155 deletions
|
@ -313,6 +313,9 @@ void SDLContext::event_loop(std::stop_token stp) {
|
|||
case 3: ms_event.tl2 = !up; shift = 3; break;
|
||||
}
|
||||
ms_event.event_type |= (1<<(shift+up));
|
||||
if (e.type == SDL_MOUSEBUTTONDOWN && e.button.clicks == 2 && e.button.button == 1) {
|
||||
ms_event.event_type |= MS_EVENT_MOUSE_LDBLCLK;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -573,7 +576,7 @@ void SDLContext::update_zindex() {
|
|||
}
|
||||
template<typename T>
|
||||
requires(std::is_trivially_copy_constructible_v<T>)
|
||||
void SDLContext::push_item(const T &item) {
|
||||
void SDLContext::push_item(const T &item) {
|
||||
auto b = reinterpret_cast<const char *>(&item);
|
||||
auto e = b + sizeof(T);
|
||||
auto sz = _display_update_queue.size();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue