summaryrefslogtreecommitdiff
path: root/apps/graphics/traveler/include/trv_input.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/graphics/traveler/include/trv_input.h')
-rw-r--r--apps/graphics/traveler/include/trv_input.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/apps/graphics/traveler/include/trv_input.h b/apps/graphics/traveler/include/trv_input.h
index 1c2e7e724..9650089cf 100644
--- a/apps/graphics/traveler/include/trv_input.h
+++ b/apps/graphics/traveler/include/trv_input.h
@@ -46,20 +46,25 @@
* Pre-processor Definitions
****************************************************************************/
+/* Number of units player moves forward or backward. */
+
+#define STEP_DISTANCE 15
+
+/****************************************************************************
+ * Public Types
+ ****************************************************************************/
+
struct trv_input_s
{
int16_t fwdrate; /* Forward motion rate. Negative is backward */
int16_t leftrate; /* Left motion rate. Negative is right */
int16_t yawrate; /* Yaw turn rate. Positive is to the left */
int16_t pitchrate; /* Pitch turn rate. Positive is upward */
+ int16_t stepheight; /* Size a a vertical step, if applicable */
bool dooropen; /* True: Open a door */
};
/****************************************************************************
- * Public Types
- ****************************************************************************/
-
-/****************************************************************************
* Public Data
****************************************************************************/