Project
Loading...
Searching...
No Matches
GPUDisplayFrontendKeys.h
Go to the documentation of this file.
1// Copyright 2019-2026 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
14
15// Key codes for special keys (to unify different treatment in X11 / Windows / GLUT / etc.), as GPUDisplayFrontendAddKey(code, name) X-macros.
16// No include guard: included multiple times with different definitions of GPUDisplayFrontendAddKey.
17
29GPUDisplayFrontendAddKey(13, ENTER); // fixed at 13
43GPUDisplayFrontendAddKey(27, ESCAPE); // fixed at 27
48GPUDisplayFrontendAddKey(32, SPACE); // fixed at 32
49
50#ifndef GPUDisplayFrontendKeyDownMap
51#define GPUDisplayFrontendKeyDownMap(...)
52#endif
53
65GPUDisplayFrontendKeyDownMap(11, FOCUS_ORIENT_UP);
67GPUDisplayFrontendKeyDownMap(13, ROTATE_AROUND_Z);
68GPUDisplayFrontendKeyDownMap(14, CHANGE_ANIMATION_INTERVAL);
69GPUDisplayFrontendKeyDownMap(15, ROTATE_YAW_LEFT);
70GPUDisplayFrontendKeyDownMap(16, ROTATE_YAW_RIGHT);
71GPUDisplayFrontendKeyDownMap(17, ROTATE_PITCH_UP);
72GPUDisplayFrontendKeyDownMap(18, ROTATE_PITCH_DOWN);
73GPUDisplayFrontendKeyDownMap(19, MAX); // Must be the maximum value!
74
75#undef GPUDisplayFrontendAddKey
76#undef GPUDisplayFrontendKeyDownMap
#define GPUDisplayFrontendAddKey(code, key)
#define GPUDisplayFrontendKeyDownMap(...)