FCT
载入中...
搜索中...
未找到
EventHandler.h
浏览该文件的文档.
1#pragma once
3namespace FCT {
4 class Window;
5 class EventHandler : public RefCount {
6 public:
7 virtual void onResize(Window* wnd,int width,int height) = 0;
8 virtual void onMouseMove(Window* wnd, int xpos, int ypos) = 0;
9 virtual void onMouseWheel(Window* wnd,int delta) = 0;
10 virtual void onLButtonDown(Window* wnd, int xpos, int ypos) = 0;
11 virtual void onLButtonUp(Window* wnd, int xpos, int ypos) = 0;
12 virtual void onRButtonDown(Window* wnd, int xpos, int ypos) = 0;
13 virtual void onRButtonUp(Window* wnd, int xpos, int ypos) = 0;
14 virtual void onKeyDown(Window* wnd, int key) = 0;
15 virtual void onKeyUp(Window* wnd, int key) = 0;
16 private:
17
18 };
19}
virtual void onMouseWheel(Window *wnd, int delta)=0
virtual void onKeyDown(Window *wnd, int key)=0
virtual void onLButtonDown(Window *wnd, int xpos, int ypos)=0
virtual void onRButtonUp(Window *wnd, int xpos, int ypos)=0
virtual void onLButtonUp(Window *wnd, int xpos, int ypos)=0
virtual void onResize(Window *wnd, int width, int height)=0
virtual void onKeyUp(Window *wnd, int key)=0
virtual void onMouseMove(Window *wnd, int xpos, int ypos)=0
virtual void onRButtonDown(Window *wnd, int xpos, int ypos)=0