Mercurial > fife-parpg
comparison engine/core/eventchannel/mouse/ec_mouseevent.h @ 378:64738befdf3b
bringing in the changes from the build_system_rework branch in preparation for the 0.3.0 release. This commit will require the Jan2010 devkit. Clients will also need to be modified to the new way to import fife.
author | vtchill@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Mon, 11 Jan 2010 23:34:52 +0000 |
parents | 90005975cdbb |
children | 010da1d1ee1c |
comparison
equal
deleted
inserted
replaced
377:fe6fb0e0ed23 | 378:64738befdf3b |
---|---|
149 return ss.str(); | 149 return ss.str(); |
150 } | 150 } |
151 | 151 |
152 /** Returns string representation of given event type | 152 /** Returns string representation of given event type |
153 */ | 153 */ |
154 inline std::string mouseEventType2str(MouseEventType t) const { | 154 inline static std::string mouseEventType2str(MouseEventType t) { |
155 std::string s("unknown"); | 155 std::string s("unknown"); |
156 switch (t) { | 156 switch (t) { |
157 case MouseEvent::MOVED: | 157 case MouseEvent::MOVED: |
158 s = "moved"; | 158 s = "moved"; |
159 break; | 159 break; |
187 return s; | 187 return s; |
188 } | 188 } |
189 | 189 |
190 /** Returns string representation of given button type | 190 /** Returns string representation of given button type |
191 */ | 191 */ |
192 inline std::string mouseButtonType2str(MouseButtonType t) const { | 192 inline static std::string mouseButtonType2str(MouseButtonType t) { |
193 std::string s("unknown"); | 193 std::string s("unknown"); |
194 switch (t) { | 194 switch (t) { |
195 case MouseEvent::EMPTY: | 195 case MouseEvent::EMPTY: |
196 s = "empty"; | 196 s = "empty"; |
197 break; | 197 break; |