BuGUI
BUtton Grid User Interface
Loading...
Searching...
No Matches
ctrlr_shifter.hpp
1
#pragma once
2
#include <bugui/concepts/widget.hpp>
3
4
namespace
bugui
5
{
10
template
<
typename
T>
11
struct
ctrlr_shifter
12
{
15
void
on_Shift
(
auto
& p) {};
16
};
17
19
template
<has_Shift T>
20
struct
ctrlr_shifter
<T>
21
{ };
22
23
}
// namespace bugui
24
25
bugui::ctrlr_shifter
Ensures that buttons labeled Shift are registered on press and can be queried with Shift_held,...
Definition
ctrlr_shifter.hpp:12
bugui::ctrlr_shifter::on_Shift
void on_Shift(auto &p)
Empty funciton acting as a workaround, ensuring it is always defined in the controller.
Definition
ctrlr_shifter.hpp:15
include
bugui
controller
ctrlr_shifter.hpp
Generated by
1.16.1