Fixes cocos2d/cocos2d-x/#8414

Changes as suggested by @dumganhar
This commit is contained in:
kompjoefriek 2015-01-22 20:19:28 +01:00
parent 38b0d25bc5
commit 60fc8de036
1 changed files with 12 additions and 9 deletions

View File

@ -29,17 +29,20 @@
#include "base/CCEvent.h"
#include "math/CCGeometry.h"
#define MOUSE_BUTTON_LEFT 0
#define MOUSE_BUTTON_RIGHT 1
#define MOUSE_BUTTON_MIDDLE 2
#define MOUSE_BUTTON_4 3
#define MOUSE_BUTTON_5 4
#define MOUSE_BUTTON_6 5
#define MOUSE_BUTTON_7 6
#define MOUSE_BUTTON_8 7
NS_CC_BEGIN
enum class MouseButton
{
LEFT = 0,
RIGHT,
MIDDLE,
_4,
_5,
_6,
_7,
_8
};
class CC_DLL EventMouse : public Event
{
public: