com.opera.core.systems.scope.services.ums
Class SystemInputManager
java.lang.Object
com.opera.core.systems.scope.AbstractService
com.opera.core.systems.scope.services.ums.SystemInputManager
- All Implemented Interfaces:
- ISystemInput
public class SystemInputManager
- extends AbstractService
- implements ISystemInput
SystemInputManager handles systemInput simulating real clicks, and key presses.
- Author:
- Adam Minchinton, Karianne Ekern
|
Method Summary |
void |
click(Point location,
SystemInputProtos.MouseInfo.MouseButton button,
int numClicks,
List<SystemInputProtos.ModifierPressed> modifiers)
Clicks MouseButton a specified number of times with zero or more modifiers held down. |
void |
init()
|
void |
keyDown(String key,
List<SystemInputProtos.ModifierPressed> modifiers)
|
void |
keyPress(String key,
List<SystemInputProtos.ModifierPressed> modifiers)
Presses key, optionally with one or more modifiers held down. |
void |
keyUp(String key,
List<SystemInputProtos.ModifierPressed> modifiers)
|
void |
mouseDown(Point location,
SystemInputProtos.MouseInfo.MouseButton button,
List<SystemInputProtos.ModifierPressed> modifiers)
|
void |
mouseMove(Point location,
SystemInputProtos.MouseInfo.MouseButton button,
List<SystemInputProtos.ModifierPressed> modifiers)
|
void |
mouseUp(Point location,
SystemInputProtos.MouseInfo.MouseButton button,
List<SystemInputProtos.ModifierPressed> modifiers)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
init
public void init()
click
public void click(Point location,
SystemInputProtos.MouseInfo.MouseButton button,
int numClicks,
List<SystemInputProtos.ModifierPressed> modifiers)
- Description copied from interface:
ISystemInput
- Clicks MouseButton a specified number of times with zero or more modifiers held down.
- Specified by:
click in interface ISystemInput
- Parameters:
location - - Point to clickbutton - - MouseButton to clicknumClicks - - number of clicksmodifiers - - modifiers to hold down during click
mouseMove
public void mouseMove(Point location,
SystemInputProtos.MouseInfo.MouseButton button,
List<SystemInputProtos.ModifierPressed> modifiers)
- Specified by:
mouseMove in interface ISystemInput
mouseUp
public void mouseUp(Point location,
SystemInputProtos.MouseInfo.MouseButton button,
List<SystemInputProtos.ModifierPressed> modifiers)
- Specified by:
mouseUp in interface ISystemInput
mouseDown
public void mouseDown(Point location,
SystemInputProtos.MouseInfo.MouseButton button,
List<SystemInputProtos.ModifierPressed> modifiers)
- Specified by:
mouseDown in interface ISystemInput
keyPress
public void keyPress(String key,
List<SystemInputProtos.ModifierPressed> modifiers)
- Description copied from interface:
ISystemInput
- Presses key, optionally with one or more modifiers held down.
- Specified by:
keyPress in interface ISystemInput
- Parameters:
key - - key to pressmodifiers - - modifiers to hold
keyDown
public void keyDown(String key,
List<SystemInputProtos.ModifierPressed> modifiers)
- Specified by:
keyDown in interface ISystemInput
keyUp
public void keyUp(String key,
List<SystemInputProtos.ModifierPressed> modifiers)
- Specified by:
keyUp in interface ISystemInput
Copyright © 2012. All Rights Reserved.