#include <vector>
#include <set>
#include <common.hpp>
#include <math.hpp>
Go to the source code of this file.
|
namespace | rack |
| Root namespace for the Rack API.
|
|
namespace | rack::widget |
| Base UI widget types.
|
|
◆ RACK_MOD_CTRL
#define RACK_MOD_CTRL GLFW_MOD_CONTROL |
Remaps Ctrl to Cmd on Mac Use this instead of GLFW_MOD_CONTROL, since Cmd should be used on Mac in place of Ctrl on Linux/Windows.
◆ RACK_MOD_CTRL_NAME
#define RACK_MOD_CTRL_NAME "Ctrl" |
◆ RACK_MOD_SHIFT
#define RACK_MOD_SHIFT GLFW_MOD_SHIFT |
◆ RACK_MOD_SHIFT_NAME
#define RACK_MOD_SHIFT_NAME "Shift" |
◆ RACK_MOD_ALT
#define RACK_MOD_ALT GLFW_MOD_ALT |
◆ RACK_MOD_ALT_NAME
#define RACK_MOD_ALT_NAME "Alt" |
◆ RACK_MOD_MASK
#define RACK_MOD_MASK (GLFW_MOD_SHIFT | GLFW_MOD_CONTROL | GLFW_MOD_ALT | GLFW_MOD_SUPER) |
Filters actual mod keys from the mod flags.
Use this if you don't care about GLFW_MOD_CAPS_LOCK and GLFW_MOD_NUM_LOCK. Example usage: if ((e.mod & RACK_MOD_MASK) == (RACK_MOD_CTRL | GLFW_MOD_SHIFT)) ...
◆ RACK_HELD
A key action state representing the the key is (still) being held.