Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
KODI::KEYBOARD::CKeyboardInputHandling Class Reference

Class to translate input from Kodi keycodes to key names defined by the keyboard's controller profile. More...

#include <KeyboardInputHandling.h>

Inheritance diagram for KODI::KEYBOARD::CKeyboardInputHandling:
KODI::KEYBOARD::IKeyboardDriverHandler

Public Member Functions

 CKeyboardInputHandling (IKeyboardInputHandler *handler, JOYSTICK::IButtonMap *buttonMap)
 
 ~CKeyboardInputHandling (void) override=default
 
bool OnKeyPress (const CKey &key) override
 A key has been pressed.
 
void OnKeyRelease (const CKey &key) override
 A key has been released.
 
- Public Member Functions inherited from KODI::KEYBOARD::IKeyboardDriverHandler
virtual ~IKeyboardDriverHandler ()=default
 

Detailed Description

Class to translate input from Kodi keycodes to key names defined by the keyboard's controller profile.

Constructor & Destructor Documentation

◆ CKeyboardInputHandling()

CKeyboardInputHandling::CKeyboardInputHandling ( IKeyboardInputHandler * handler,
JOYSTICK::IButtonMap * buttonMap )

◆ ~CKeyboardInputHandling()

KODI::KEYBOARD::CKeyboardInputHandling::~CKeyboardInputHandling ( void )
overridedefault

Member Function Documentation

◆ OnKeyPress()

bool CKeyboardInputHandling::OnKeyPress ( const CKey & key)
overridevirtual

A key has been pressed.

Parameters
keyThe pressed key
Returns
True if the event was handled, false otherwise

Implements KODI::KEYBOARD::IKeyboardDriverHandler.

◆ OnKeyRelease()

void CKeyboardInputHandling::OnKeyRelease ( const CKey & key)
overridevirtual

A key has been released.

Parameters
keyThe released key

Implements KODI::KEYBOARD::IKeyboardDriverHandler.


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