Adds extra information about the UserData in the notifications.

When using the USER_DATA_ADDED and USER_DATA_REMOVED notifications, some
more information is necessary than just the user data id, especially
when a user data entry has been removed.
This commit is contained in:
Tigran Gasparian
2019-02-12 12:02:20 +01:00
parent 12e6478689
commit d9e36935e6
3 changed files with 44 additions and 29 deletions

View File

@@ -8,8 +8,9 @@
//instead, only ADD a new one at the top, comment-out previous one
#define SHARED_MEMORY_MAGIC_NUMBER 201811260
//#define SHARED_MEMORY_MAGIC_NUMBER 201810250
#define SHARED_MEMORY_MAGIC_NUMBER 201902120
//#define SHARED_MEMORY_MAGIC_NUMBER 201811260
//#define SHARED_MEMORY_MAGIC_NUMBER 201810250
//#define SHARED_MEMORY_MAGIC_NUMBER 201809030
//#define SHARED_MEMORY_MAGIC_NUMBER 201809010
//#define SHARED_MEMORY_MAGIC_NUMBER 201807040
@@ -292,7 +293,7 @@ struct b3UserDataValue
{
int m_type;
int m_length;
char* m_data1;
const char* m_data1;
};
struct b3UserConstraint
@@ -441,6 +442,7 @@ enum b3VREventType
#define MAX_MOUSE_EVENTS 256
#define MAX_SDF_BODIES 512
#define MAX_USER_DATA_KEY_LENGTH 256
enum b3VRButtonInfo
{
@@ -535,7 +537,11 @@ struct b3BodyNotificationArgs
struct b3UserDataNotificationArgs
{
int m_bodyUniqueId;
int m_linkIndex;
int m_visualShapeIndex;
int m_userDataId;
char m_key[MAX_USER_DATA_KEY_LENGTH];
};
struct b3LinkNotificationArgs