Show
Ignore:
Timestamp:
02/22/10 22:37:05 (7 months ago)
Author:
gaul@…
Message:
  • NASTY async socket bug resolved
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/cpp-ode/src/mmpong-gl/netgame_ode_pong_gl.h

    r535 r538  
    66#include "ode_box_gl.h" 
    77#include "ode_sphere_gl.h" 
     8#include "hid.h" 
    89 
    910namespace mmp { 
    1011 
    11 class NetGameODEPongGL : public NetGameODEPong { 
     12class NetGameODEPongGL : public NetGameODEPong, public HID { 
    1213        public: 
    1314                static pointer create(NetCon::pointer cln_con_, const std::string& _playername, const std::string& _resdir) { 
     
    3536                         
    3637                }; 
     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                }; 
    3745        private: 
    3846                std::string playername;