Skip to content

Commit

Permalink
Update TouchView.h
Browse files Browse the repository at this point in the history
  • Loading branch information
shi-weili committed Jan 26, 2019
1 parent 65ca583 commit eee67c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bluecadet/views/TouchView.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class TouchView : public BaseView {
//! Getters/Setters

//! Set whether or not to accept new touches. Can be turned on/off.
inline void setTouchEnabled(const bool state) { mTouchEnabled = state; };
inline void setTouchEnabled(const bool state) { mTouchEnabled = state; if (!state) cancelTouches(); };
inline const bool isTouchEnabled() const { return mTouchEnabled; }

//! Accepts more than one touch if true, otherwise max of one touch if false. Defaults to false.
Expand Down

0 comments on commit eee67c5

Please sign in to comment.