Demo entry 5862516

1

   

Submitted by anonymous on Aug 09, 2016 at 02:03
Language: C++. Code size: 503 Bytes.

#ifndef __HELLOWORLD_SCENE_H__
#define __HELLOWORLD_SCENE_H__

#include "cocos2d.h"

class HelloWorld : public cocos2d::Layer
{
public:
    //省略原有代码...

    /*mouse call back function*/

    //鼠标移动的回调函数 
    void onMouseMove(cocos2d::Event * event);
    //鼠标抬起的回调函数
    void onMouseUp(cocos2d::Event * event);
    //鼠标按下的回调函数  
    void onMouseDown(cocos2d::Event * event);
    //鼠标滚动的回调函数 
    void onMouseScroll(cocos2d::Event * event);
    
};

#endif // __HELLOWORLD_SCENE_H__

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).