user_realtime.h 1.03 KB
Newer Older
Nicolas Van der Noot's avatar
Nicolas Van der Noot committed
1
2
3
4

#ifndef _USER_REALTIME_H_
#define _USER_REALTIME_H_

Nicolas Van der Noot's avatar
Nicolas Van der Noot committed
5
6
#ifdef REAL_TIME

Nicolas Van der Noot's avatar
Nicolas Van der Noot committed
7
8
#include "mbs_data.h"
#include "realtime.h"
Nicolas Van der Noot's avatar
Nicolas Van der Noot committed
9
#include "user_realtime_visu.h"
Nicolas Van der Noot's avatar
Nicolas Van der Noot committed
10
11
#include <stdint.h>

12
#ifdef SDL
13
#include "SDL.h"
Nicolas Van der Noot's avatar
Nicolas Van der Noot committed
14
15
16
17

#ifdef __cplusplus
extern "C" {
#endif
18
19
20
21
    void user_realtime_plot(MbsData* mbs_data);
    void user_keyboard(MbsData* mbs_data, Simu_realtime *realtime, int cur_t_usec, const Uint8 *keystates);
    void user_joystick_axes(MbsData* mbs_data, Simu_realtime *realtime, int nb_joysticks);
    void user_joystick_buttons(MbsData* mbs_data, int buttonID);
Nicolas Van der Noot's avatar
Nicolas Van der Noot committed
22
23
24
25
    void wait_key(Simu_realtime *realtime, int cur_t_usec, double tsim);
#ifdef __cplusplus
}
#endif
26
27
#endif

28
29
30
31
32
33
34
35
36
37
38
39
#ifdef WEBSOCKET

#ifdef __cplusplus
extern "C" {
#endif
    void user_realtime_plot(MbsData* mbs_data);
    void user_keyboard(MbsData* mbs_data, Simu_realtime *realtime, int keyevent, int state);
#ifdef __cplusplus
}
#endif
#endif

Nicolas Van der Noot's avatar
Nicolas Van der Noot committed
40
41
#endif

Nicolas Van der Noot's avatar
Nicolas Van der Noot committed
42
43
#ifdef __cplusplus
extern "C" {
44
    void set_plot(double value, const char* label);
Timothee Habra's avatar
Timothee Habra committed
45
}
Nicolas Van der Noot's avatar
Nicolas Van der Noot committed
46
#else
47
    void set_plot(double value, char* label);
Nicolas Van der Noot's avatar
Nicolas Van der Noot committed
48
49
50
#endif

#endif