Geant4 Cross Reference |
1 // Copyright (C) 2010, Guy Barrand. All rights 1 // Copyright (C) 2010, Guy Barrand. All rights reserved. 2 // See the file tools.license for terms. 2 // See the file tools.license for terms. 3 3 4 #ifndef tools_sg_device_interactor 4 #ifndef tools_sg_device_interactor 5 #define tools_sg_device_interactor 5 #define tools_sg_device_interactor 6 6 7 #include "event" 7 #include "event" 8 8 9 namespace tools { 9 namespace tools { 10 namespace sg { 10 namespace sg { 11 11 12 class device_interactor { 12 class device_interactor { 13 public: 13 public: 14 virtual ~device_interactor(){} 14 virtual ~device_interactor(){} 15 public: 15 public: 16 virtual void key_press (const key_d 16 virtual void key_press (const key_down_event&) = 0; 17 virtual void key_release (const key_u 17 virtual void key_release (const key_up_event&) = 0; 18 virtual void mouse_press (const mouse 18 virtual void mouse_press (const mouse_down_event&) = 0; 19 virtual void mouse_release (const mouse 19 virtual void mouse_release (const mouse_up_event&) = 0; 20 virtual void mouse_move (const mouse 20 virtual void mouse_move (const mouse_move_event&) = 0; 21 //virtual void mouse_double_click (const mouse 21 //virtual void mouse_double_click (const mouse_double_click_event&) = 0; 22 virtual void wheel_rotate (const wheel 22 virtual void wheel_rotate (const wheel_rotate_event&) = 0; 23 }; 23 }; 24 24 25 }} 25 }} 26 26 27 #endif 27 #endif