OVR: Move player with controller to the direction it points to
[mercenary-reloaded.git] / src / mercenary / mercenary.h
index c8bd3d3..bcabc3f 100644 (file)
@@ -3,6 +3,7 @@
 enum {
        STOP_AT_END = 0,
        STOP_AT_PATCH_RENDER,
+       STOP_AT_PATCH_VR,
        STOP_AT_WAIT_VBL,
        STOP_AT_WAIT_INPUT,
        STOP_AT_CLEAR_SCREEN1,
@@ -64,10 +65,18 @@ enum {
        STOP_AT_EXPLOSION,
 };
 
+struct vr_move {
+       int override;
+       int index;
+       int32_t east[4];
+       int32_t north[4];
+};
+
 extern const struct cpu_stop mercenary_stop_at[];
 void mercenary_load(void);
 void mercenary_patch(void);
 void mercenary_patch_render(void);
+void mercenary_patch_vr(void);
 uint32_t mercenary_palette_view(void);
 uint32_t mercenary_palette_render(void);
 uint32_t mercenary_palette_predefined(void);
@@ -85,6 +94,7 @@ uint16_t mercenary_poly_tags_color(void);
 int mercenary_background_index(void);
 uint32_t mercenary_planet_scale_index(void);
 uint32_t mercenary_star_table(void);
+void mercenary_vr_move(int override, int32_t *east, int32_t *north);
 extern const char *mercenary_name;
 extern const char *mercenary_gamesavesuffix;