projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added game controller base mappings file
[rocksndiamonds.git]
/
src
/
libgame
/
system.c
diff --git
a/src/libgame/system.c
b/src/libgame/system.c
index 5ccf3fb3784650147bc1f70aed77af72925dd0bb..4d4c448f486755e90a03f97dcc6608d1d3ef1793 100644
(file)
--- a/
src/libgame/system.c
+++ b/
src/libgame/system.c
@@
-300,7
+300,18
@@
void InitGfxOtherSettings()
void InitOverlayInfo()
{
void InitOverlayInfo()
{
+ overlay.enabled = FALSE;
overlay.active = FALSE;
overlay.active = FALSE;
+
+#if defined(PLATFORM_ANDROID)
+ if (strEqual(setup.touch.control_type, TOUCH_CONTROL_VIRTUAL_BUTTONS))
+ overlay.enabled = TRUE;
+#endif
+}
+
+void SetOverlayEnabled(boolean enabled)
+{
+ overlay.enabled = enabled;
}
void SetOverlayActive(boolean active)
}
void SetOverlayActive(boolean active)
@@
-1634,3
+1645,8
@@
boolean CheckJoystickOpened(int nr)
{
return SDLCheckJoystickOpened(nr);
}
{
return SDLCheckJoystickOpened(nr);
}
+
+void ClearJoystickState()
+{
+ SDLClearJoystickState();
+}