projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added options for vertical text spacing (used on info screens for now)
[rocksndiamonds.git]
/
src
/
tape.h
diff --git
a/src/tape.h
b/src/tape.h
index 03849d0a45ab049011ecd3ef27808992fe0555fa..ab3fd55cea32dc09e1f781f212e84b6080e53280 100644
(file)
--- a/
src/tape.h
+++ b/
src/tape.h
@@
-14,12
+14,19
@@
/* values for TapeTogglePause() */
/* values for TapeTogglePause() */
-#define TAPE_TOGGLE_MANUAL TRUE
-#define TAPE_TOGGLE_AUTOMATIC FALSE
+#define TAPE_TOGGLE_AUTOMATIC 0
+#define TAPE_TOGGLE_MANUAL (1 << 0)
+#define TAPE_TOGGLE_PLAY_PAUSE (1 << 1)
/* values for tape properties */
#define MAX_TAPE_LEN (1000 * FRAMES_PER_SECOND) /* max.time x fps */
/* values for tape properties */
#define MAX_TAPE_LEN (1000 * FRAMES_PER_SECOND) /* max.time x fps */
+/* values for tape mouse actions */
+#define TAPE_ACTION_LX 0
+#define TAPE_ACTION_LY 1
+#define TAPE_ACTION_BUTTON 2
+#define TAPE_ACTION_UNUSED 3
+
/* some positions in the video tape control window */
#define VIDEO_DISPLAY1_XPOS 5
#define VIDEO_DISPLAY1_YPOS 5
/* some positions in the video tape control window */
#define VIDEO_DISPLAY1_XPOS 5
#define VIDEO_DISPLAY1_YPOS 5
@@
-181,6
+188,8
@@
struct TapeInfo
int centered_player_nr_next;
boolean set_centered_player;
int centered_player_nr_next;
boolean set_centered_player;
+ boolean use_mouse;
+
struct
{
byte action[MAX_PLAYERS];
struct
{
byte action[MAX_PLAYERS];
@@
-210,6
+219,7
@@
void TapeSetDateFromNow();
void TapeStartRecording(int);
void TapeHaltRecording(void);
void TapeStopRecording(void);
void TapeStartRecording(int);
void TapeHaltRecording(void);
void TapeStopRecording(void);
+boolean TapeAddAction(byte *);
void TapeRecordAction(byte *);
void TapeTogglePause(boolean);
void TapeStartPlaying(void);
void TapeRecordAction(byte *);
void TapeTogglePause(boolean);
void TapeStartPlaying(void);
@@
-231,6
+241,8
@@
void MapTapeEjectButton();
void MapTapeWarpButton();
void MapTapeButtons();
void UnmapTapeButtons();
void MapTapeWarpButton();
void MapTapeButtons();
void UnmapTapeButtons();
+void RedrawTapeButtons();
+void RedrawOrRemapTapeButtons();
void HandleTapeButtonKeys(Key);
void HandleTapeButtonKeys(Key);