MMSInputLISThread Class Reference

#include <mmsinputlisthread.h>

Inheritance diagram for MMSInputLISThread:

List of all members.


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

MMSInputLISHandlerhandler
 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

Detailed Description

Definition at line 45 of file mmsinputlisthread.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Member Data Documentation

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.

int MMSInputLISThread::dv_fd [private]

filedescriptor of the device

Definition at line 57 of file mmsinputlisthread.h.

shift key pressed

Definition at line 60 of file mmsinputlisthread.h.

altgr key pressed

Definition at line 63 of file mmsinputlisthread.h.

is caps lock?

Definition at line 66 of file mmsinputlisthread.h.

button pressed?

Definition at line 69 of file mmsinputlisthread.h.

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.


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