Gestro
Public Member Functions | Private Attributes | List of all members
UbuntuController::KeyboardAction Class Reference

A wrapper class for Keyboard Event. More...

#include <KeyboardAction.h>

Inheritance diagram for UbuntuController::KeyboardAction:
Inheritance graph
Collaboration diagram for UbuntuController::KeyboardAction:
Collaboration graph

Public Member Functions

 KeyboardAction (Display *d)
 
void pressKey (int k)
 

Private Attributes

Display * display
 A pointer to the display. More...
 

Detailed Description

A wrapper class for Keyboard Event.

Definition at line 9 of file KeyboardAction.h.

Constructor & Destructor Documentation

◆ KeyboardAction()

KeyboardAction::KeyboardAction ( Display *  d)

Constructor It takes a Display object as an argument and assigns it to the display variable.

Parameters
dThe display to use.

Definition at line 5 of file KeyboardAction.cpp.

Member Function Documentation

◆ pressKey()

void KeyboardAction::pressKey ( int  k)

Wrapper function for pressing Button

Parameters
kthe keycode of the button to press.

Definition at line 9 of file KeyboardAction.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ display

Display* UbuntuController::KeyboardAction::display
private

A pointer to the display.

Definition at line 12 of file KeyboardAction.h.


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