mirror of
https://github.com/astromaddie/HaloCE-VR.git
synced 2026-10-27 19:00:24 +01:00
71 lines
1.2 KiB
C
71 lines
1.2 KiB
C
/*
|
|
PLAYER_RUMBLE.H
|
|
*/
|
|
|
|
#ifndef __PLAYER_RUMBLE_H
|
|
#define __PLAYER_RUMBLE_H
|
|
#pragma once
|
|
|
|
/* ---------- headers */
|
|
|
|
#include "cseries/cseries.h"
|
|
#include "math/real_math.h"
|
|
|
|
/* ---------- constants */
|
|
|
|
enum
|
|
{
|
|
NUMBER_OF_RUMBLE_MOTORS = 2,
|
|
};
|
|
|
|
/* ---------- structures */
|
|
|
|
struct rumble_motor
|
|
{
|
|
real scale;
|
|
real duration;
|
|
short transition_function;
|
|
short pad;
|
|
real unused[2];
|
|
};
|
|
|
|
struct rumble_definition
|
|
{
|
|
struct rumble_motor motors[NUMBER_OF_RUMBLE_MOTORS];
|
|
real scale_floor;
|
|
byte unused[16];
|
|
};
|
|
|
|
/* ---------- prototypes/PLAYER_RUMBLE.C */
|
|
|
|
void rumble_initialize(
|
|
void);
|
|
void rumble_dispose(
|
|
void);
|
|
void rumble_initialize_for_new_map(
|
|
void);
|
|
void rumble_player_set_scripted_values(
|
|
real left_motor,
|
|
real right_motor);
|
|
void rumble_player_set_scale(
|
|
real scale);
|
|
void rumble_player_impulse(
|
|
short local_player_index,
|
|
struct rumble_definition *rumble_definition,
|
|
real scale,
|
|
real duration_scale);
|
|
void rumble_player_clear(
|
|
short local_player_index);
|
|
void rumble_clear_all_now(
|
|
void);
|
|
void rumble_player_continuous(
|
|
short local_player_index,
|
|
real left_motor,
|
|
real right_motor);
|
|
void rumble_dispose_from_old_map(
|
|
void);
|
|
void rumble_update(
|
|
void);
|
|
|
|
#endif // __PLAYER_RUMBLE_H
|