MGL(Win32)
読み取り中…
検索中…
一致する文字列を見つけられません
include
mgl
input
mgl_input_repeat.h
[詳解]
1
// SPDX-License-Identifier: Zlib
2
/* ------------------------------------------------------------------------- */
9
/* ------------------------------------------------------------------------- */
10
11
#ifndef INCGUARD_MGL_INPUT_REPEAT_H_1635477719
12
#define INCGUARD_MGL_INPUT_REPEAT_H_1635477719
13
14
namespace
MGL::Input
15
{
17
enum class
RepeatType
: uint8_t
18
{
19
Frame
,
20
Second
,
21
};
22
24
struct
RepeatSetting
25
{
26
RepeatType
type
;
27
float
firstBlank
;
28
float
secondBlank
;
29
31
constexpr
RepeatSetting
() noexcept
32
:
type
(
RepeatType
::Second)
33
,
firstBlank
(0.5f)
34
,
secondBlank
(0.067f)
35
{
36
}
37
38
/* ------------------------------------------------------------------------- */
45
/* ------------------------------------------------------------------------- */
46
constexpr
RepeatSetting
(
RepeatType
repeatType,
float
inFirstBlank,
float
inSecondBlank) noexcept
47
:
type
(repeatType)
48
,
firstBlank
(inFirstBlank)
49
,
secondBlank
(inSecondBlank)
50
{
51
}
52
};
53
}
// namespace MGL::Input
54
55
#endif
// INCGUARD_MGL_INPUT_REPEAT_H_1635477719
56
57
// vim: et ts=4 sw=4 sts=4
MGL::Input::RepeatType
RepeatType
リピートタイプ
Definition
mgl_input_repeat.h:18
MGL::Input::RepeatType::Frame
@ Frame
フレーム
MGL::Input::RepeatType::Second
@ Second
秒
MGL::Input::RepeatSetting
リピート設定
Definition
mgl_input_repeat.h:25
MGL::Input::RepeatSetting::firstBlank
float firstBlank
初回ブランク期間
Definition
mgl_input_repeat.h:27
MGL::Input::RepeatSetting::RepeatSetting
constexpr RepeatSetting() noexcept
コンストラクタ
Definition
mgl_input_repeat.h:31
MGL::Input::RepeatSetting::secondBlank
float secondBlank
2回目以降のブランク期間
Definition
mgl_input_repeat.h:28
MGL::Input::RepeatSetting::RepeatSetting
constexpr RepeatSetting(RepeatType repeatType, float inFirstBlank, float inSecondBlank) noexcept
コンストラクタ
Definition
mgl_input_repeat.h:46
MGL::Input::RepeatSetting::type
RepeatType type
リピートタイプ
Definition
mgl_input_repeat.h:26
構築:
1.12.0