mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-23 16:07:52 -05:00
662a9e99f5
- remove cocos2dx folder - change all include paths in cocos2d to be relative
47 lines
913 B
C++
47 lines
913 B
C++
#ifndef __CCMOUSE_DELEGATE_H__
|
|
#define __CCMOUSE_DELEGATE_H__
|
|
|
|
#include "../../include/ccMacros.h"
|
|
#include "../../cocoa/CCObject.h"
|
|
|
|
RT_ADD(
|
|
NS_CC_BEGIN
|
|
|
|
class CC_DLL CCMouseDelegate
|
|
{
|
|
public:
|
|
virtual void rightKeyDown() {}
|
|
|
|
virtual void rightKeyUp() {}
|
|
|
|
virtual void scrollWheel(float x, float y) {}
|
|
|
|
//pretty certain there's no fields, based on initializer
|
|
};
|
|
|
|
class CC_DLL CCMouseHandler : public CCObject
|
|
{
|
|
public:
|
|
GEODE_MONOSTATE_CONSTRUCTOR_COCOS(CCMouseHandler, CCObject)
|
|
inline CCMouseHandler() = default;
|
|
|
|
virtual ~CCMouseHandler();
|
|
|
|
CCMouseHandler& operator=(const CCMouseHandler&);
|
|
|
|
CCMouseDelegate* getDelegate();
|
|
|
|
static CCMouseHandler* handlerWithDelegate(CCMouseDelegate* pDelegate);
|
|
|
|
virtual bool initWithDelegate(CCMouseDelegate* pDelegate);
|
|
|
|
void setDelegate(CCMouseDelegate* pDelegate);
|
|
|
|
protected:
|
|
CCMouseDelegate* m_pDelegate;
|
|
};
|
|
|
|
NS_CC_END
|
|
)
|
|
|
|
#endif
|