11#ifndef INCGUARD_MGL_KEYBOARD_DELEGATE_EVENT_H_1609060066
12#define INCGUARD_MGL_KEYBOARD_DELEGATE_EVENT_H_1609060066
15#if defined(MGL_KEYBOARD_DELEGATE_ENABLE_EVENT)
23class EventKeyboardDelegate :
public KeyboardDelegate
26 EventKeyboardDelegate() noexcept;
28 void UpdateState(KeycodeArray &state) noexcept override;
37 [[nodiscard]]
bool IsConnecting() const noexcept
override
43 static void OnEventKeyDown(
void *callbackArg,
void *notifyArg)
noexcept;
44 static void OnEventKeyUp(
void *callbackArg,
void *notifyArg)
noexcept;
45 static void OnEventShouldClearInput(
void *callbackArg,
void *notifyArg)
noexcept;
47 void SetState(Keycode keycode,
bool isPressed)
noexcept;
49 Event::Handle _eventKeyDown;
50 Event::Handle _eventKeyUp;
51 Event::Handle _eventShouldClearInput;
std::bitset< kKeycodeCount > KeycodeArray
キーコード用配列のエイリアス
Definition mgl_keyboard_keycode.h:101