-
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: falkTX <[email protected]>
- Loading branch information
Showing
2 changed files
with
18 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* DISTRHO Plugin Framework (DPF) | ||
* Copyright (C) 2012-2023 Filipe Coelho <[email protected]> | ||
* Copyright (C) 2012-2024 Filipe Coelho <[email protected]> | ||
* | ||
* Permission to use, copy, modify, and/or distribute this software for any purpose with | ||
* or without fee is hereby granted, provided that the above copyright notice and this | ||
|
@@ -40,10 +40,13 @@ START_NAMESPACE_DGL | |
Keyboard modifier flags. | ||
*/ | ||
enum Modifier { | ||
kModifierShift = 1u << 0u, ///< Shift key | ||
kModifierControl = 1u << 1u, ///< Control key | ||
kModifierAlt = 1u << 2u, ///< Alt/Option key | ||
kModifierSuper = 1u << 3u ///< Mod4/Command/Windows key | ||
kModifierShift = 1U << 0U, ///< Shift key | ||
kModifierControl = 1U << 1U, ///< Control key | ||
kModifierAlt = 1U << 2U, ///< Alt/Option key | ||
kModifierSuper = 1U << 3U, ///< Mod4/Command/Windows key | ||
kModifierNumLock = 1U << 4U, ///< Num lock enabled | ||
kModifierScrollLock = 1U << 5U, ///< Scroll lock enabled | ||
kModifierCapsLock = 1U << 6U, ///< Caps lock enabled | ||
}; | ||
|
||
/** | ||
|
@@ -63,6 +66,7 @@ enum Modifier { | |
enum Key { | ||
// Convenience symbols for ASCII control characters | ||
kKeyBackspace = 0x00000008U, ///< Backspace | ||
kKeyTab = 0x00000009U, ///< Tab | ||
kKeyEnter = 0x0000000DU, ///< Enter | ||
kKeyEscape = 0x0000001BU, ///< Escape | ||
kKeyDelete = 0x0000007FU, ///< Delete | ||
|
@@ -150,7 +154,7 @@ enum Key { | |
*/ | ||
enum EventFlag { | ||
kFlagSendEvent = 1, ///< Event is synthetic | ||
kFlagIsHint = 2 ///< Event is a hint (not direct user input) | ||
kFlagIsHint = 2, ///< Event is a hint (not direct user input) | ||
}; | ||
|
||
/** | ||
|
@@ -159,7 +163,7 @@ enum EventFlag { | |
enum CrossingMode { | ||
kCrossingNormal, ///< Crossing due to pointer motion | ||
kCrossingGrab, ///< Crossing due to a grab | ||
kCrossingUngrab ///< Crossing due to a grab release | ||
kCrossingUngrab, ///< Crossing due to a grab release | ||
}; | ||
|
||
/** | ||
|
@@ -204,7 +208,7 @@ enum MouseCursor { | |
|
||
// Backwards compatibility with old DPF | ||
kMouseCursorDiagonal DISTRHO_DEPRECATED_BY("kMouseCursorUpLeftDownRight") = kMouseCursorUpLeftDownRight, | ||
kMouseCursorAntiDiagonal DISTRHO_DEPRECATED_BY("kMouseCursorUpRightDownLeft") = kMouseCursorUpRightDownLeft | ||
kMouseCursorAntiDiagonal DISTRHO_DEPRECATED_BY("kMouseCursorUpRightDownLeft") = kMouseCursorUpRightDownLeft, | ||
}; | ||
|
||
/** | ||
|
@@ -215,11 +219,11 @@ enum MouseCursor { | |
while a smooth scroll is for those with arbitrary scroll direction freedom, like some touchpads. | ||
*/ | ||
enum ScrollDirection { | ||
kScrollUp, ///< Scroll up | ||
kScrollDown, ///< Scroll down | ||
kScrollLeft, ///< Scroll left | ||
kScrollRight, ///< Scroll right | ||
kScrollSmooth ///< Smooth scroll in any direction | ||
kScrollUp, ///< Scroll up | ||
kScrollDown, ///< Scroll down | ||
kScrollLeft, ///< Scroll left | ||
kScrollRight, ///< Scroll right | ||
kScrollSmooth, ///< Smooth scroll in any direction | ||
}; | ||
|
||
/** | ||
|
Submodule pugl-upstream
updated
14 files
+1 −0 | bindings/cpp/include/.clang-tidy | |
+6 −1 | examples/.clang-tidy | |
+1 −1 | examples/cube_view.h | |
+3 −3 | examples/sybok.hpp | |
+17 −13 | include/pugl/pugl.h | |
+10 −10 | meson_options.txt | |
+13 −5 | src/common.c | |
+6 −0 | src/internal.c | |
+24 −18 | src/mac.m | |
+1 −3 | src/mac_cairo.m | |
+9 −5 | src/win.c | |
+49 −29 | src/x11.c | |
+2 −1 | test/.clang-tidy | |
+7 −2 | test/test_utils.h |