2017-09-23 16:25:00 +00:00
|
|
|
#ifndef B3_PLUGIN_CONTEXT_H
|
|
|
|
#define B3_PLUGIN_CONTEXT_H
|
|
|
|
|
|
|
|
#include "../PhysicsClientC_API.h"
|
|
|
|
|
|
|
|
struct b3PluginContext
|
|
|
|
{
|
|
|
|
b3PhysicsClientHandle m_physClient;
|
2017-09-24 01:05:23 +00:00
|
|
|
|
|
|
|
//plugin can modify the m_userPointer to store persistent object pointer (class or struct instance etc)
|
|
|
|
void* m_userPointer;
|
2018-01-17 20:48:48 +00:00
|
|
|
|
2017-10-03 22:00:52 +00:00
|
|
|
const struct b3VRControllerEvent* m_vrControllerEvents;
|
|
|
|
int m_numVRControllerEvents;
|
|
|
|
const struct b3KeyboardEvent* m_keyEvents;
|
|
|
|
int m_numKeyEvents;
|
|
|
|
const struct b3MouseEvent* m_mouseEvents;
|
|
|
|
int m_numMouseEvents;
|
2017-09-23 16:25:00 +00:00
|
|
|
};
|
|
|
|
|
2017-09-24 01:05:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-09-23 16:25:00 +00:00
|
|
|
#endif //B3_PLUGIN_CONTEXT_H
|