projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added option 'off' for touch controls (for non-Android platforms)
[rocksndiamonds.git]
/
src
/
libgame
/
system.h
diff --git
a/src/libgame/system.h
b/src/libgame/system.h
index 2a888667737e51d03611383a6a0e8510663c70ad..871fcd89c4d2a94c4c4a9210d1c1c27c46f5b9a0 100644
(file)
--- a/
src/libgame/system.h
+++ b/
src/libgame/system.h
@@
-83,11
+83,16
@@
#endif
/* values for touch control */
#endif
/* values for touch control */
+#define TOUCH_CONTROL_OFF "off"
#define TOUCH_CONTROL_VIRTUAL_BUTTONS "virtual_buttons"
#define TOUCH_CONTROL_WIPE_GESTURES "wipe_gestures"
#define TOUCH_CONTROL_FOLLOW_FINGER "follow_finger"
#define TOUCH_CONTROL_VIRTUAL_BUTTONS "virtual_buttons"
#define TOUCH_CONTROL_WIPE_GESTURES "wipe_gestures"
#define TOUCH_CONTROL_FOLLOW_FINGER "follow_finger"
+#if defined(PLATFORM_ANDROID)
#define TOUCH_CONTROL_DEFAULT TOUCH_CONTROL_VIRTUAL_BUTTONS
#define TOUCH_CONTROL_DEFAULT TOUCH_CONTROL_VIRTUAL_BUTTONS
+#else
+#define TOUCH_CONTROL_DEFAULT TOUCH_CONTROL_OFF
+#endif
#define TOUCH_MOVE_DISTANCE_DEFAULT 2
#define TOUCH_DROP_DISTANCE_DEFAULT 5
#define TOUCH_MOVE_DISTANCE_DEFAULT 2
#define TOUCH_DROP_DISTANCE_DEFAULT 5
@@
-874,6
+879,9
@@
struct FontBitmapInfo
int src_x, src_y; /* start position of font characters */
int width, height; /* width / height of font characters */
int src_x, src_y; /* start position of font characters */
int width, height; /* width / height of font characters */
+ int offset_x; /* offset to next font character */
+ int offset_y; /* offset to next font character */
+
int draw_xoffset; /* offset for drawing font characters */
int draw_yoffset; /* offset for drawing font characters */
int draw_xoffset; /* offset for drawing font characters */
int draw_yoffset; /* offset for drawing font characters */
@@
-1197,6
+1205,11
@@
struct TreeInfo
char *name_sorting; /* optional sorting name for correct name sorting */
char *author; /* level or artwork author name */
char *year; /* optional year of creation for levels or artwork */
char *name_sorting; /* optional sorting name for correct name sorting */
char *author; /* level or artwork author name */
char *year; /* optional year of creation for levels or artwork */
+
+ char *program_title; /* optional alternative text for program title */
+ char *program_copyright; /* optional alternative text for program copyright */
+ char *program_company; /* optional alternative text for program company */
+
char *imported_from; /* optional comment for imported levels or artwork */
char *imported_by; /* optional comment for imported levels or artwork */
char *tested_by; /* optional comment to name people who tested a set */
char *imported_from; /* optional comment for imported levels or artwork */
char *imported_by; /* optional comment for imported levels or artwork */
char *tested_by; /* optional comment to name people who tested a set */