diff --git a/panda/src/putil/mouseData.cxx b/panda/src/putil/mouseData.cxx index 58a99f0e21..e9d2375a96 100644 --- a/panda/src/putil/mouseData.cxx +++ b/panda/src/putil/mouseData.cxx @@ -18,7 +18,6 @@ #include "mouseData.h" - //////////////////////////////////////////////////////////////////// // Function: MouseData::Constructor // Access: Public @@ -30,33 +29,3 @@ MouseData() { _xpos = 0; _ypos = 0; } - -//////////////////////////////////////////////////////////////////// -// Function: MouseData::get_x -// Access: Public -// Description: -//////////////////////////////////////////////////////////////////// -int MouseData:: -get_x() const { - return _xpos; -} - -//////////////////////////////////////////////////////////////////// -// Function: MouseData::get_y -// Access: Public -// Description: -//////////////////////////////////////////////////////////////////// -int MouseData:: -get_y() const { - return _ypos; -} - -//////////////////////////////////////////////////////////////////// -// Function: MouseData::get_in_window -// Access: Public -// Description: -//////////////////////////////////////////////////////////////////// -bool MouseData:: -get_in_window() const { - return _in_window; -} diff --git a/panda/src/putil/mouseData.h b/panda/src/putil/mouseData.h index 815b964fba..8ca3c0adeb 100644 --- a/panda/src/putil/mouseData.h +++ b/panda/src/putil/mouseData.h @@ -33,9 +33,9 @@ class EXPCL_PANDA MouseData { PUBLISHED: MouseData(); - int get_x() const; - int get_y() const; - bool get_in_window() const; + INLINE int get_x() const {return _xpos;}; + INLINE int get_y() const {return _ypos;}; + INLINE bool get_in_window() const {return _in_window;}; public: bool _in_window;