Forum



ubmarco am 19.12.2017 14:57 #14801


Hello,

my mouse is moving a bit slow in the game. That is especially annoying when moving large maps.
Apart from that the game (incl. sound) runs smoothly.

I'm on Xubuntu 17.04 64bit.
Can I define it somehow? Is it linked to the system mouse speed?
If I change the system mouse speed in 'Mouse and Touchpad', it does not affect mouse speed in the desktop environment.
So maybe that's not an issue of the game but of how xfce4 handles the mouse acceleration / speed settings.

Any clues?


Flamefire am 19.12.2017 17:53 #14802


We use SDL to get the information about the mouse position from the OS. So it might be an issue of SDL or your OS. I#d say it's the OS but don't know how to validate this.

---
Github: https://github.com/Flamefire


FloSoft am 19.12.2017 18:09 #14803

Großmeister
Hi,

since we do nothing with the mouse (-speed), it seems to be a SDL problem.

I've found an OpenTTD issue about that topic too, perhaps there's a solution for you?
https://www.tt-forums.net/viewtopic.php?t=48212

---
mfg
Flo



Leuchtefix75 am 19.04.2018 20:57 #14931


...or simply use the OS cursor? if you build your own game...


Code:
# VideoSDL.cpp
CreateScreen
//    SDL_ShowCursor(SDL_DISABLE);
...
MessageLoop
Msg_RightDown
SDL_ShowCursor(SDL_DISABLE);
...
Msg_RightUp
SDL_ShowCursor(SDL_ENABLE);

#GameManager.cpp
GameManager::Run
//        DrawCursor();





Feel free to post in English!

Antwort schreiben

Username:
Security code:
Text:

   
  Convert smilies like :), ;) etc. into small graphics?
  Convert WWW-addresses into clickable links?
  Soll Boardcode in ihrer Nachricht aktiviert werden?