~gnu-psychosynth-team/psychosynth/trunk

« back to all changes in this revision

Viewing changes to src/gui3d/cegui_injecter.hpp

  • Committer: Juan Pedro Bolívar Puente
  • Date: 2012-01-27 12:52:38 UTC
  • Revision ID: raskolnikov@gnu.org-20120127125238-x53wt7jsb6hjczp3
Compilation works on Cegui 1.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
{
44
44
public:
45
45
    bool mouseMoved(const OIS::MouseEvent& e) {
46
 
        return
 
46
        auto result =
47
47
            CEGUI::System::getSingleton().injectMousePosition(
48
48
                e.state.X.abs, e.state.Y.abs) ||
49
49
            CEGUI::System::getSingleton().injectMouseWheelChange(
50
50
                e.state.Z.rel * .01);
51
 
 
52
 
        //return CEGUI::System::getSingleton().injectMouseMove(e.state.X.rel, e.state.Y.rel);
 
51
        return result;
53
52
    }
54
53
        
55
54
    bool mousePressed(const OIS::MouseEvent &e, OIS::MouseButtonID id) {
56
 
        return CEGUI::System::getSingleton().injectMouseButtonDown (convert_button(id));
 
55
        auto result = CEGUI::System::getSingleton().injectMouseButtonDown (convert_button(id));
 
56
        return result;
57
57
    }
58
58
        
59
59
    bool mouseReleased(const OIS::MouseEvent &e, OIS::MouseButtonID id) {