#include <mmsinputlisthread.h>
Public Member Functions | |
MMSInputLISThread (MMSInputLISHandler *handler, int kb_fd) | |
MMSInputLISThread (MMSInputLISHandler *handler, MMSINPUTLISHANDLER_DEV *device) | |
~MMSInputLISThread () | |
void | threadMain () |
Virtual main method for the thread. | |
Private Member Functions | |
bool | openDevice () |
void | closeDevice () |
MMSKeySymbol | getSymbol (int code, unsigned short value) |
unsigned short | readValue (unsigned char table, unsigned char index) |
MMSKeySymbol | getKeyFromCode (bool pressed, unsigned char code) |
void | updateLED () |
MMSKeySymbol | translateKey (int code) |
bool | translateEvent (struct input_event *linux_evt, MMSInputEvent *inputevent) |
Private Attributes | |
MMSInputLISHandler * | handler |
access to the input handler to buffer input events there | |
int | kb_fd |
filedescriptor from which we read keyboard inputs (this should be the fd to the framebuffer console) | |
MMSINPUTLISHANDLER_DEV | device |
int | dv_fd |
filedescriptor of the device | |
bool | shift_pressed |
shift key pressed | |
bool | altgr_pressed |
altgr key pressed | |
bool | is_caps_lock |
is caps lock? | |
bool | button_pressed |
button pressed? | |
int | lastX |
int | lastY |
struct input_event | lastevent |
Definition at line 45 of file mmsinputlisthread.h.
MMSInputLISThread::MMSInputLISThread | ( | MMSInputLISHandler * | handler, | |
int | kb_fd | |||
) |
Definition at line 470 of file mmsinputlisthread.cpp.
MMSInputLISThread::MMSInputLISThread | ( | MMSInputLISHandler * | handler, | |
MMSINPUTLISHANDLER_DEV * | device | |||
) |
Definition at line 483 of file mmsinputlisthread.cpp.
MMSInputLISThread::~MMSInputLISThread | ( | ) |
Definition at line 490 of file mmsinputlisthread.cpp.
bool MMSInputLISThread::openDevice | ( | ) | [private] |
Definition at line 493 of file mmsinputlisthread.cpp.
void MMSInputLISThread::closeDevice | ( | ) | [private] |
Definition at line 520 of file mmsinputlisthread.cpp.
MMSKeySymbol MMSInputLISThread::getSymbol | ( | int | code, | |
unsigned short | value | |||
) | [private] |
Definition at line 531 of file mmsinputlisthread.cpp.
unsigned short MMSInputLISThread::readValue | ( | unsigned char | table, | |
unsigned char | index | |||
) | [private] |
Definition at line 721 of file mmsinputlisthread.cpp.
MMSKeySymbol MMSInputLISThread::getKeyFromCode | ( | bool | pressed, | |
unsigned char | code | |||
) | [private] |
Definition at line 730 of file mmsinputlisthread.cpp.
void MMSInputLISThread::updateLED | ( | ) | [private] |
Definition at line 777 of file mmsinputlisthread.cpp.
MMSKeySymbol MMSInputLISThread::translateKey | ( | int | code | ) | [private] |
Definition at line 784 of file mmsinputlisthread.cpp.
bool MMSInputLISThread::translateEvent | ( | struct input_event * | linux_evt, | |
MMSInputEvent * | inputevent | |||
) | [private] |
Definition at line 792 of file mmsinputlisthread.cpp.
void MMSInputLISThread::threadMain | ( | ) | [virtual] |
Virtual main method for the thread.
This virtual method is empty and have to be setup with code by a derived class. The MMSThread class is only the base class and cannot be constructed.
Implements MMSThread.
Definition at line 916 of file mmsinputlisthread.cpp.
MMSInputLISHandler* MMSInputLISThread::handler [private] |
access to the input handler to buffer input events there
Definition at line 48 of file mmsinputlisthread.h.
int MMSInputLISThread::kb_fd [private] |
filedescriptor from which we read keyboard inputs (this should be the fd to the framebuffer console)
Definition at line 51 of file mmsinputlisthread.h.
Definition at line 54 of file mmsinputlisthread.h.
int MMSInputLISThread::dv_fd [private] |
bool MMSInputLISThread::shift_pressed [private] |
bool MMSInputLISThread::altgr_pressed [private] |
bool MMSInputLISThread::is_caps_lock [private] |
bool MMSInputLISThread::button_pressed [private] |
int MMSInputLISThread::lastX [private] |
Definition at line 71 of file mmsinputlisthread.h.
int MMSInputLISThread::lastY [private] |
Definition at line 71 of file mmsinputlisthread.h.
struct input_event MMSInputLISThread::lastevent [read, private] |
Definition at line 72 of file mmsinputlisthread.h.