projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changed "http" to "https" in URLs
[rocksndiamonds.git]
/
src
/
libgame
/
system.c
diff --git
a/src/libgame/system.c
b/src/libgame/system.c
index 337c18dff69c877a714e96f0e00f07e6de3736f3..2f2150a78c6964d24a7ab105932127b080ece23e 100644
(file)
--- a/
src/libgame/system.c
+++ b/
src/libgame/system.c
@@
-4,7
+4,7
@@
// (c) 1995-2014 by Artsoft Entertainment
// Holger Schemel
// info@artsoft.org
// (c) 1995-2014 by Artsoft Entertainment
// Holger Schemel
// info@artsoft.org
-// http://www.artsoft.org/
+// http
s
://www.artsoft.org/
// ----------------------------------------------------------------------------
// system.c
// ============================================================================
// ----------------------------------------------------------------------------
// system.c
// ============================================================================
@@
-57,6
+57,7
@@
int button_status = MB_NOT_PRESSED;
boolean motion_status = FALSE;
int wheel_steps = DEFAULT_WHEEL_STEPS;
boolean keyrepeat_status = TRUE;
boolean motion_status = FALSE;
int wheel_steps = DEFAULT_WHEEL_STEPS;
boolean keyrepeat_status = TRUE;
+boolean textinput_status = FALSE;
int redraw_mask = REDRAW_NONE;
int redraw_mask = REDRAW_NONE;
@@
-117,7
+118,11
@@
void InitNetworkInfo(boolean enabled, boolean connected, boolean serveronly,
void InitRuntimeInfo()
{
void InitRuntimeInfo()
{
+#if defined(HAS_TOUCH_DEVICE)
+ runtime.uses_touch_device = TRUE;
+#else
runtime.uses_touch_device = FALSE;
runtime.uses_touch_device = FALSE;
+#endif
}
void InitScoresInfo(void)
}
void InitScoresInfo(void)
@@
-1692,7
+1697,7
@@
KeyMod HandleKeyModState(Key key, int key_status)
{
KeyMod new_modifier = KMOD_None;
{
KeyMod new_modifier = KMOD_None;
- switch(key)
+ switch
(key)
{
case KSYM_Shift_L:
new_modifier = KMOD_Shift_L;
{
case KSYM_Shift_L:
new_modifier = KMOD_Shift_L;
@@
-1749,6
+1754,8
@@
KeyMod GetKeyModStateFromEvents(void)
void StartTextInput(int x, int y, int width, int height)
{
void StartTextInput(int x, int y, int width, int height)
{
+ textinput_status = TRUE;
+
#if defined(HAS_SCREEN_KEYBOARD)
SDL_StartTextInput();
#if defined(HAS_SCREEN_KEYBOARD)
SDL_StartTextInput();
@@
-1763,6
+1770,8
@@
void StartTextInput(int x, int y, int width, int height)
void StopTextInput(void)
{
void StopTextInput(void)
{
+ textinput_status = FALSE;
+
#if defined(HAS_SCREEN_KEYBOARD)
SDL_StopTextInput();
#if defined(HAS_SCREEN_KEYBOARD)
SDL_StopTextInput();