ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Contains helper methods for mouse/hover events that were introduced in Android 4.0. More...

Collaboration diagram for org::residualvm::residualvm::MouseHelper:

List of all members.

Public Member Functions

 MouseHelper (ResidualVM residualvm)
void attach (SurfaceView main_surface)
boolean onMouseEvent (MotionEvent e, boolean hover)
boolean getRmbGuard ()
 Checks whether right mouse button is pressed or was pressed just previously.

Static Public Member Functions

static void checkHoverAvailable ()
 Calling this forces class initialization.
static boolean isMouse (MotionEvent e)

Static Package Functions

 [static initializer]
 Class initialization fails when this throws an exception.

Private Member Functions

View.OnHoverListener createListener ()

Private Attributes

View.OnHoverListener _listener
ResidualVM _residualvm
long _rmbGuardTime
boolean _rmbPressed
boolean _lmbPressed
boolean _mmbPressed

Detailed Description

Contains helper methods for mouse/hover events that were introduced in Android 4.0.

Definition at line 11 of file MouseHelper.java.


Constructor & Destructor Documentation

org::residualvm::residualvm::MouseHelper::MouseHelper ( ResidualVM  residualvm  )  [inline]

Definition at line 36 of file MouseHelper.java.


Member Function Documentation

org::residualvm::residualvm::MouseHelper::[static initializer] (  )  [inline, static, package]

Class initialization fails when this throws an exception.

Checking hover availability is done on static class initialization for Android 1.6 compatibility.

void org::residualvm::residualvm::MouseHelper::attach ( SurfaceView  main_surface  )  [inline]

Definition at line 50 of file MouseHelper.java.

static void org::residualvm::residualvm::MouseHelper::checkHoverAvailable (  )  [inline, static]

Calling this forces class initialization.

Definition at line 34 of file MouseHelper.java.

View.OnHoverListener org::residualvm::residualvm::MouseHelper::createListener (  )  [inline, private]

Definition at line 41 of file MouseHelper.java.

boolean org::residualvm::residualvm::MouseHelper::getRmbGuard (  )  [inline]

Checks whether right mouse button is pressed or was pressed just previously.

This is used to prevent sending extra back key on right mouse click which is the default behaviour in some platforms.

Returns:
true if right mouse button is (or was in the last 200ms) pressed

Definition at line 144 of file MouseHelper.java.

static boolean org::residualvm::residualvm::MouseHelper::isMouse ( MotionEvent  e  )  [inline, static]

Definition at line 54 of file MouseHelper.java.

boolean org::residualvm::residualvm::MouseHelper::onMouseEvent ( MotionEvent  e,
boolean  hover 
) [inline]

Definition at line 72 of file MouseHelper.java.


Member Data Documentation

Definition at line 12 of file MouseHelper.java.

Definition at line 16 of file MouseHelper.java.

Definition at line 17 of file MouseHelper.java.

Definition at line 15 of file MouseHelper.java.


The documentation for this class was generated from the following file:


Generated on Sat Oct 19 2019 05:06:12 for ResidualVM by doxygen 1.7.1
curved edge   curved edge