MGL(Win32)
読み取り中…
検索中…
一致する文字列を見つけられません
mgl_keyboard_delegate_apple_gc.h
[詳解]
1// SPDX-License-Identifier: Zlib
2/* ------------------------------------------------------------------------- */
9/* ------------------------------------------------------------------------- */
10
11#ifndef INCGUARD_MGL_KEYBOARD_DELEGATE_APPLE_GC_H_1656951873
12#define INCGUARD_MGL_KEYBOARD_DELEGATE_APPLE_GC_H_1656951873
13
14#include <mgl/mgl_environment.h>
15
16#if defined(MGL_TARGET_MACOS) || defined(MGL_TARGET_IOS) || defined(MGL_TARGET_TVOS)
17
19
20namespace MGL::Input
21{
23class AppleGCKeyboardDelegate : public KeyboardDelegate
24{
25public:
26 static bool IsAvailable() noexcept;
27
28 AppleGCKeyboardDelegate() noexcept;
29
30 void UpdateState(KeycodeArray &state) noexcept override;
31
32 /* ------------------------------------------------------------------------- */
38 /* ------------------------------------------------------------------------- */
39 [[nodiscard]] bool IsConnecting() const noexcept override
40 {
41 return _isConnecting;
42 }
43
44private:
45 bool _isConnecting;
46};
47} // namespace MGL::Input
48
49#endif // defined(MGL_TARGET_MACOS) || defined(MGL_TARGET_IOS) || defined(MGL_TARGET_TVOS)
50#endif // INCGUARD_MGL_KEYBOARD_DELEGATE_APPLE_GC_H_1656951873
51
52// vim: et ts=4 sw=4 sts=4
MGL 環境定義
MGL キーボード入力デリゲート基底クラス