C
Calin
I'm trying to build a wrapper but the pointer gives me a hard time.
the C code:
typedef enum
{
MANYMOUSE_EVENT_ABSMOTION = 0,
MANYMOUSE_EVENT_RELMOTION,
MANYMOUSE_EVENT_BUTTON,
MANYMOUSE_EVENT_SCROLL,
MANYMOUSE_EVENT_DISCONNECT,
MANYMOUSE_EVENT_MAX
} ManyMouseEventType;
__declspec(dllexport) typedef struct
{
ManyMouseEventType type;
unsigned int device;
unsigned int item;
int value;
int minval;
int maxval;
} ManyMouseEvent;
__declspec(dllexport) int ManyMouse_PollEvent(ManyMouseEvent *event);
C# code:
[DllImport("ManyMouseDLL.dll")]
public static extern int ManyMouse_PollEvent( );
the C code:
typedef enum
{
MANYMOUSE_EVENT_ABSMOTION = 0,
MANYMOUSE_EVENT_RELMOTION,
MANYMOUSE_EVENT_BUTTON,
MANYMOUSE_EVENT_SCROLL,
MANYMOUSE_EVENT_DISCONNECT,
MANYMOUSE_EVENT_MAX
} ManyMouseEventType;
__declspec(dllexport) typedef struct
{
ManyMouseEventType type;
unsigned int device;
unsigned int item;
int value;
int minval;
int maxval;
} ManyMouseEvent;
__declspec(dllexport) int ManyMouse_PollEvent(ManyMouseEvent *event);
C# code:
[DllImport("ManyMouseDLL.dll")]
public static extern int ManyMouse_PollEvent( );