MGL(Win32)
読み取り中…
検索中…
一致する文字列を見つけられません
include
mgl
input
gamepad
mgl_gamepad_delegate.h
[詳解]
1
// SPDX-License-Identifier: Zlib
2
/* ------------------------------------------------------------------------- */
9
/* ------------------------------------------------------------------------- */
10
11
#ifndef INCGUARD_MGL_GAMEPAD_DELEGATE_H_1609660280
12
#define INCGUARD_MGL_GAMEPAD_DELEGATE_H_1609660280
13
14
namespace
MGL::Input
15
{
16
class
GamepadServer;
17
19
class
GamepadDelegate
20
{
21
public
:
22
/* ------------------------------------------------------------------------- */
27
/* ------------------------------------------------------------------------- */
28
GamepadDelegate
(
GamepadServer
&server) noexcept
29
:
_server
(server)
30
{}
31
32
virtual
~GamepadDelegate
() noexcept = default;
33
34
/* ------------------------------------------------------------------------- */
40
/* ------------------------------------------------------------------------- */
41
virtual
bool
Initialize
() noexcept = 0;
42
43
/* ------------------------------------------------------------------------- */
47
/* ------------------------------------------------------------------------- */
48
virtual
void
UpdateState
() noexcept = 0;
49
50
protected:
51
GamepadServer
&
_server
;
52
};
53
}
// namespace MGL::Input
54
#endif
// INCGUARD_MGL_GAMEPAD_DELEGATE_H_1609660280
55
56
// vim: et ts=4 sw=4 sts=4
MGL::Input::GamepadDelegate
ゲームパッド用デリゲート基底クラス
Definition
mgl_gamepad_delegate.h:20
MGL::Input::GamepadDelegate::Initialize
virtual bool Initialize() noexcept=0
初期化処理
MGL::Input::GamepadDelegate::GamepadDelegate
GamepadDelegate(GamepadServer &server) noexcept
コンストラクタ
Definition
mgl_gamepad_delegate.h:28
MGL::Input::GamepadDelegate::UpdateState
virtual void UpdateState() noexcept=0
パッドステートの更新処理
MGL::Input::GamepadDelegate::_server
GamepadServer & _server
ゲームパッドサーバへの参照
Definition
mgl_gamepad_delegate.h:51
MGL::Input::GamepadServer
ゲームパッドサーバ
Definition
mgl_gamepad_server.h:37
構築:
1.12.0