summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2025-05-09 10:06:44 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2025-07-14 17:51:42 +0200
commit7ce556976838874ed03585927fddf631c8f042ed (patch)
treeb90fa5e958b0b5cdb3c8d225934e2d2ca4fe48c8
parentf3eb1efc933eec853430967807822ab8523c02b5 (diff)
downloadmana-7ce556976838874ed03585927fddf631c8f042ed.tar.gz
mana-7ce556976838874ed03585927fddf631c8f042ed.tar.bz2
mana-7ce556976838874ed03585927fddf631c8f042ed.tar.xz
mana-7ce556976838874ed03585927fddf631c8f042ed.zip
Various small cleanups
* Fixed doxygen comment on KeyFunction struct * Use SDL_BUTTON_LMASK instead of SDL_BUTTON(1) * Removed unused include
-rw-r--r--src/gui/viewport.cpp2
-rw-r--r--src/gui/widgets/chattab.h1
-rw-r--r--src/keyboardconfig.h6
3 files changed, 4 insertions, 5 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp
index 9e529063..3d90846e 100644
--- a/src/gui/viewport.cpp
+++ b/src/gui/viewport.cpp
@@ -278,7 +278,7 @@ void Viewport::_followMouse()
mMouseY = static_cast<int>(logicalY);
// If the left button is dragged
- if (mPlayerFollowMouse && button & SDL_BUTTON(1))
+ if (mPlayerFollowMouse && button & SDL_BUTTON_LMASK)
{
// We create a mouse event and send it to mouseDragged.
const Uint8 *keys = SDL_GetKeyboardState(nullptr);
diff --git a/src/gui/widgets/chattab.h b/src/gui/widgets/chattab.h
index dfc07638..5232392f 100644
--- a/src/gui/widgets/chattab.h
+++ b/src/gui/widgets/chattab.h
@@ -24,7 +24,6 @@
#include "gui/chatwindow.h"
#include "gui/widgets/tab.h"
-#include "gui/widgets/textfield.h"
class BrowserBox;
class Recorder;
diff --git a/src/keyboardconfig.h b/src/keyboardconfig.h
index a9deee64..be643b9b 100644
--- a/src/keyboardconfig.h
+++ b/src/keyboardconfig.h
@@ -32,9 +32,9 @@
*/
struct KeyFunction
{
- const char* configField; /** Field index that is in the config file. */
- int defaultValue; /** The default key value used. */
- SDL_Keycode value; /** The actual value that is used. */
+ const char* configField; /**< Field index that is in the config file. */
+ int defaultValue; /**< The default key value used. */
+ SDL_Keycode value; /**< The actual value that is used. */
};
class Setup_Keyboard;