rsta2 / circle

A C++ bare metal environment for Raspberry Pi with USB (32 and 64 bit)

Home Page:https://circle-rpi.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add ability to clear raw keyboard handler

incanus opened this issue · comments

Thanks as ever @rsta2. What do you think about adding the ability to clear the raw keyboard handler? I have been using this for some time on my own project and am wondering why it doesn't exist in the library.

void RegisterKeyStatusHandlerRaw (TKeyStatusHandlerRaw *pKeyStatusHandlerRaw,
                                  boolean bMixedMode = FALSE);

void ClearKeyStatusHandlerRaw() { m_pKeyStatusHandlerRaw = 0; }

I added a similar method UnregisterKeyStatusHandlerRaw() on the develop branch. The term "unregister" has been already used somewhere else in Circle, so for being homogeneous. Thanks for the hint!

This feature is in Circle 45.2 now.