BlackBerry® smartphones based on Java® technology BlackBerry smartphone Simulator
Event injection is used to programmatically create and invoke specific events into the system while using the BlackBerrySmartphone Simulator. The net.rim.device.api.system.EventInjector class is broken into several Event classes that can be injected. These are described in the following table:
The base class for events.
The event class that defines a physical key press event. Use this class to create events that mimic an actual key being pressed on the device. This class may come in handy when the actual key pressed (and not the character that may result from the key being pressed) is important (i.e. injecting keyboard shortcuts, etc.).
The event class that defines a character input event. Historically, this event class defined a KeyPad event. In reality, KeyEvent represents the input of a character and not the actual event of a key being pressed. You should use this event class if you wish to input text into a TextField or other such areas where characters themselves are required as input.
The event class that defines a Navigation event.
The event class that defines a Trackwheel event.
The event class that defines a Touch event.
Event injection is restricted in the following situations: