89
edits
Line 181: | Line 181: | ||
<pre> | <pre> | ||
struct | struct NPKeyEvent { | ||
uint32_t normalizedKeyCode; | uint32_t normalizedKeyCode; | ||
uint32_t platformKeyCode; | uint32_t platformKeyCode; | ||
Line 190: | Line 190: | ||
}; | }; | ||
struct | struct NPMouseEvent { | ||
uint32_t button; | uint32_t button; | ||
int32_t x; | int32_t x; | ||
Line 201: | Line 201: | ||
}; | }; | ||
struct | struct NPMouseWheelEvent { | ||
float deltaX; | float deltaX; | ||
float deltaY; | float deltaY; | ||
Line 209: | Line 209: | ||
}; | }; | ||
struct | struct NPPaintEvent { | ||
// See above for graphics events. | // See above for graphics events. | ||
}; | }; | ||
Line 218: | Line 218: | ||
double timeStampSeconds; | double timeStampSeconds; | ||
union { | union { | ||
NPKeyEvent key; | |||
NPMouseEvent mouse; | |||
NPMouseWheelEvent wheel; | |||
NPPaintEvent paint; | |||
}; | }; | ||
}; | }; |
edits