Changeset 538 for branches/cpp-ode/src/mmpong-gl/netgame_ode_pong_gl.h
- Timestamp:
- 02/22/10 22:37:05 (7 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/cpp-ode/src/mmpong-gl/netgame_ode_pong_gl.h
r535 r538 6 6 #include "ode_box_gl.h" 7 7 #include "ode_sphere_gl.h" 8 #include "hid.h" 8 9 9 10 namespace mmp { 10 11 11 class NetGameODEPongGL : public NetGameODEPong {12 class NetGameODEPongGL : public NetGameODEPong, public HID { 12 13 public: 13 14 static pointer create(NetCon::pointer cln_con_, const std::string& _playername, const std::string& _resdir) { … … 35 36 36 37 }; 38 39 virtual void process(Renderer& renderer, uint8_t *key_state, uint32_t mouse_state, int mouse_x, int mouse_y) { 40 if (mouse_x != 0 || mouse_y != 0) { 41 cln_set_paddlepos(mypadpos + (1.0/100)*mouse_y); 42 43 } 44 }; 37 45 private: 38 46 std::string playername;
