20#ifdef JEVOIS_PLATFORM_PRO
31using namespace std::string_literals;
102 virtual void init(
unsigned short w,
unsigned short h,
bool fullscreen =
false,
float scale = 1.0f,
103 bool conslock =
true);
107 virtual bool pollEvents(
bool & shouldclose)
override;
113 virtual void render()
override;
128 std::array<wchar_t, 49>
itsCharKeys {
L"1234567890-=qwertyuiop[]asdfghjkl;'`\\zxcvbnm,./<" };
129 std::array<wchar_t, 49>
itsShiftKeys {
L"!@#$%^&*()_+QWERTYUIOP{}ASDFGHJKL:\"~|ZXCVBNM<>?>" };
133 L"<Esc>",
L"<BckSp>",
L"<Tab>",
L"<Enter>",
L"<LCtrl>",
L"<LShft>",
134 L"<RShft>",
L"<KP*>",
L"<LAlt>",
L" ",
L"<CpsLk>",
L"<F1>",
L"<F2>",
135 L"<F3>",
L"<F4>",
L"<F5>",
L"<F6>",
L"<F7>",
L"<F8>",
L"<F9>",
L"<F10>",
136 L"<NumLk>",
L"<ScrLk>",
L"<KP7>",
L"<KP8>",
L"<KP9>",
L"<KP->",
L"<KP4>",
137 L"<KP5>",
L"<KP6>",
L"<KP+>",
L"<KP1>",
L"<KP2>",
L"<KP3>",
L"<KP0>",
138 L"<KP.>",
L"<F11>",
L"<F12>",
L"<KPEnt>",
L"<RCtrl>",
L"<KP/>",
139 L"<PrtSc>",
L"<AltGr>",
L"<Break>" ,
L"<Home>",
L"<Up>",
140 L"<PgUp>",
L"<Left>",
L"<Right>",
L"<End>",
L"<Down>",
L"<PgDn>",
141 L"<Ins>",
L"<Del>",
L"<Pause>",
L"<LMeta>",
L"<RMeta>",
L"<Menu>"
BackendMALI for ImGui on JeVois-Pro.
std::array< wchar_t, 49 > itsShiftKeys
void addDevice(size_t num, int fd)
void removeDevice(size_t num)
std::array< wchar_t, 49 > itsCharKeys
ImGuiBackendMALI()
Constructor.
static constexpr wchar_t itsFuncKeys[58][8]
virtual bool pollEvents(bool &shouldclose) override
Poll events such as mouse movements, buttons, keyboard, joystick, and pass to ImGui.
virtual ~ImGuiBackendMALI()
Virtual destructor for safe inheritance, free resources.
virtual void init(unsigned short w, unsigned short h, bool fullscreen=false, float scale=1.0f, bool conslock=true)
Initialize the underlying engine that will process events, create windows, etc.
std::chrono::time_point< std::chrono::steady_clock > itsLastNewFrameTime
virtual void render() override
Render the ImGui graphics.
virtual void newFrame() override
Start a new frame and clear the window/framebuffer.
input_event_state itsInputState
std::array< wchar_t, 49 > itsAltgrKeys
Backend for VideoDisplay on JeVois-Pro host using MALI.
virtual void init(unsigned short w, unsigned short h, bool fullscreen=false) override
Initialize the underlying engine that will process events, create windows, etc.
Main namespace for all JeVois classes and functions.