summaryrefslogtreecommitdiff
path: root/src/touchmanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-24 18:26:52 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-24 18:26:52 +0300
commit67ee3168a45ea09a863de5be2e0a94cf1afbe6dc (patch)
treeaa33639f3e70f81444b893bbbb99ab78f6beb2d6 /src/touchmanager.h
parenta602d5c2460b197866028cfb3d2aa2b7b3aea80c (diff)
downloadplus-67ee3168a45ea09a863de5be2e0a94cf1afbe6dc.tar.gz
plus-67ee3168a45ea09a863de5be2e0a94cf1afbe6dc.tar.bz2
plus-67ee3168a45ea09a863de5be2e0a94cf1afbe6dc.tar.xz
plus-67ee3168a45ea09a863de5be2e0a94cf1afbe6dc.zip
Fix compilation with clang.
Diffstat (limited to 'src/touchmanager.h')
-rw-r--r--src/touchmanager.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/touchmanager.h b/src/touchmanager.h
index 99d904765..f67a2b72d 100644
--- a/src/touchmanager.h
+++ b/src/touchmanager.h
@@ -113,7 +113,7 @@ class TouchManager final : public ConfigListener
RIGHT = 2
};
- void init() restrict;
+ void init() restrict2;
void loadTouchItem(TouchItem **restrict item,
const std::string &restrict name,
@@ -128,22 +128,22 @@ class TouchManager final : public ConfigListener
const TouchFuncPtr fPressed = nullptr,
const TouchFuncPtr fReleased = nullptr,
const TouchFuncPtr fOut = nullptr)
- restrict A_NONNULL(2);
+ restrict2 A_NONNULL(2);
- void clear() restrict;
+ void clear() restrict2;
- void draw() restrict;
+ void draw() restrict2;
- void safeDraw() restrict;
+ void safeDraw() restrict2;
- void drawText() restrict;
+ void drawText() restrict2;
- bool processEvent(const MouseInput &mouseInput) restrict;
+ bool processEvent(const MouseInput &mouseInput) restrict2;
- bool isActionActive(const InputActionT index) restrict const;
+ bool isActionActive(const InputActionT index) restrict2 const;
void setActionActive(const InputActionT index,
- const bool value) restrict
+ const bool value) restrict2
{
if (static_cast<int>(index) >= 0 &&
static_cast<int>(index) < actionsSize)
@@ -152,28 +152,28 @@ class TouchManager final : public ConfigListener
}
}
- void resize(const int width, const int height) restrict;
+ void resize(const int width, const int height) restrict2;
static void unload(TouchItem *restrict const item);
- void unloadTouchItem(TouchItem *restrict *unloadItem) restrict;
+ void unloadTouchItem(TouchItem *restrict *unloadItem) restrict2;
- void optionChanged(const std::string &value) restrict override final;
+ void optionChanged(const std::string &value) restrict2 override final;
- void loadPad() restrict;
+ void loadPad() restrict2;
- void loadButtons() restrict;
+ void loadButtons() restrict2;
- void loadKeyboard() restrict;
+ void loadKeyboard() restrict2;
- int getPadSize() restrict const
+ int getPadSize() restrict2 const
{ return (mJoystickSize + 2) * 50; }
- void setInGame(const bool b) restrict;
+ void setInGame(const bool b) restrict2;
- void setTempHide(const bool b) restrict;
+ void setTempHide(const bool b) restrict2;
- void shutdown() restrict;
+ void shutdown() restrict2;
static void executeAction(const std::string &restrict event);