mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Merge branch 'minetest:master' into master
This commit is contained in:
commit
6b12a6d55a
100 changed files with 45695 additions and 20802 deletions
|
@ -339,6 +339,10 @@ CIrrDeviceSDL::CIrrDeviceSDL(const SIrrlichtCreationParameters ¶m) :
|
|||
SDL_SetHint(SDL_HINT_TOUCH_MOUSE_EVENTS, "0");
|
||||
SDL_SetHint(SDL_HINT_MOUSE_TOUCH_EVENTS, "0");
|
||||
|
||||
#if defined(SDL_HINT_APP_NAME)
|
||||
SDL_SetHint(SDL_HINT_APP_NAME, "Minetest");
|
||||
#endif
|
||||
|
||||
u32 flags = SDL_INIT_TIMER | SDL_INIT_EVENTS;
|
||||
if (CreationParams.DriverType != video::EDT_NULL)
|
||||
flags |= SDL_INIT_VIDEO;
|
||||
|
@ -705,6 +709,7 @@ bool CIrrDeviceSDL::run()
|
|||
|
||||
while (!Close && wrap_PollEvent(&SDL_event)) {
|
||||
// os::Printer::log("event: ", core::stringc((int)SDL_event.type).c_str(), ELL_INFORMATION); // just for debugging
|
||||
memset(&irrevent, 0, sizeof(irrevent));
|
||||
|
||||
switch (SDL_event.type) {
|
||||
case SDL_MOUSEMOTION: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue