Inheritance diagram for Producer::KeyboardMouse:
Public Member Functions | |
KeyboardMouse (Producer::RenderSurface *rs) | |
KeyboardMouse (Producer::InputArea *inputArea) | |
void | update (KeyboardMouseCallback &, bool block=false) |
void | setCallback (KeyboardMouseCallback *cb) |
KeyboardMouseCallback * | getCallback () |
void | positionPointer (float x, float y) |
Producer::RenderSurface * | getRenderSurface () |
const Producer::RenderSurface * | getRenderSurface () const |
Producer::InputArea * | getInputArea () |
const Producer::InputArea * | getInputArea () const |
bool | computePixelCoords (float x, float y, RenderSurface *rs, float &pixel_x, float &pixel_y) |
void | setAutoRepeatMode (bool) |
bool | getAutoRepeatMode () |
Protected Member Functions | |
virtual | ~KeyboardMouse () |
bool | init () |
virtual void | run () |
Protected Attributes | |
Producer::ref_ptr< KeyboardMouseImplementation > | _implementation |
Producer::ref_ptr< Producer::RenderSurface > | _rs |
Producer::ref_ptr< Producer::InputArea > | _inputArea |
Producer::ref_ptr< KeyboardMouseCallback > | _cb |
bool | _initialized |
Producer::KeyboardMouse::KeyboardMouse | ( | Producer::RenderSurface * | rs | ) |
Producer::KeyboardMouse::KeyboardMouse | ( | Producer::InputArea * | inputArea | ) |
virtual Producer::KeyboardMouse::~KeyboardMouse | ( | ) | [protected, virtual] |
bool Producer::KeyboardMouse::computePixelCoords | ( | float | x, | |
float | y, | |||
RenderSurface * | rs, | |||
float & | pixel_x, | |||
float & | pixel_y | |||
) |
compute, from normalized mouse coords (x,y) the, for the specified RenderSurface, the pixel coordinates (pixel_x,pixel_y). return true if pixel_x and pixel_y have been successful computed, otherwise return false with pixel_x and pixel_y left unchanged.
bool Producer::KeyboardMouse::getAutoRepeatMode | ( | ) |
KeyboardMouseCallback* Producer::KeyboardMouse::getCallback | ( | ) | [inline] |
const Producer::InputArea* Producer::KeyboardMouse::getInputArea | ( | ) | const [inline] |
Producer::InputArea* Producer::KeyboardMouse::getInputArea | ( | ) | [inline] |
const Producer::RenderSurface* Producer::KeyboardMouse::getRenderSurface | ( | ) | const [inline] |
Producer::RenderSurface* Producer::KeyboardMouse::getRenderSurface | ( | ) | [inline] |
bool Producer::KeyboardMouse::init | ( | ) | [protected] |
void Producer::KeyboardMouse::positionPointer | ( | float | x, | |
float | y | |||
) |
virtual void Producer::KeyboardMouse::run | ( | ) | [protected, virtual] |
void Producer::KeyboardMouse::setAutoRepeatMode | ( | bool | ) |
Set auto repeat mode to On (true) or Off (false) When auto repeat is On, keys will send repeated keypress/keyRelease events, if a key is continously held down. Settings for keypress rates and delay are windowing system specific and out of the scope of Producer.
For X11 systems, autorepeat mode is enabled/disabled for local client testing of key repeats only. The global Xserver setting may not agree with local settings. That is, getAutoRepeatMode may be true, meaning that Producer will be looking for keys to repeat, even if the global setting is set to false.
void Producer::KeyboardMouse::setCallback | ( | KeyboardMouseCallback * | cb | ) |
void Producer::KeyboardMouse::update | ( | KeyboardMouseCallback & | , | |
bool | block = false | |||
) |
Producer::ref_ptr< KeyboardMouseCallback > Producer::KeyboardMouse::_cb [protected] |
Producer::ref_ptr< KeyboardMouseImplementation > Producer::KeyboardMouse::_implementation [protected] |
bool Producer::KeyboardMouse::_initialized [protected] |
Producer::ref_ptr< Producer::RenderSurface > Producer::KeyboardMouse::_rs [protected] |