lfsdash/outgauge.h

44 lines
744 B
C
Raw Permalink Normal View History

2014-06-28 22:49:09 +00:00
#ifndef OUTGAUGE_H
#define OUTGAUGE_H
#include <stdint.h>
struct outgauge
{
uint32_t time;
char car[4];
uint16_t flags;
uint8_t gear;
uint8_t playerid;
float speed;
float rpm;
float turbo;
float enginetemp;
float fuel;
float oilpressure;
float oiltemp;
uint32_t dashlights;
uint32_t showlights;
float throttle;
float brake;
float clutch;
char display1[16];
char display2[16];
uint32_t id;
};
2014-06-29 08:18:21 +00:00
extern struct outgauge g_outgauge;
extern float g_consumption;
extern int g_owncar;
2014-06-28 22:49:09 +00:00
extern int g_fade;
extern int g_pressed;
2014-06-29 08:18:21 +00:00
extern int g_released;
extern uint32_t g_shift_time;
extern uint32_t g_ctrl_time;
2014-06-28 22:49:09 +00:00
2014-06-29 08:18:21 +00:00
void outgauge_init(int port);
2014-06-28 22:49:09 +00:00
#endif /* OUTGAUGE_H */