Permalink
Browse files

The mouse detector toggles only on finger pressure.

  • Loading branch information...
Julien Jorge
Julien Jorge committed Sep 27, 2013
1 parent edbdec4 commit 3b3c0cbbd047edca6b3cd48fd3d9750d32917cee
Showing with 3 additions and 1 deletion.
  1. +3 −1 bear-engine/lib/src/generic_items/code/mouse_detector.cpp
@@ -149,7 +149,9 @@ bool bear::mouse_detector::finger_action( const input::finger_event& event )
( get_level().screen_to_level( event.get_position() ) ) )
{
result = true;
trigger_toggle();
if ( event.get_type() == input::finger_event::finger_event_pressed )
trigger_toggle();
}
return result;

0 comments on commit 3b3c0cb

Please sign in to comment.