Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 985851f

Browse files
ocornutMernion
authored andcommittedAug 3, 2020
IO: Added storage for PenPressure (unused by core library, to facilitate experiments) (ocornut#2372)
1 parent 0247273 commit 985851f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎imgui.h

+1
Original file line numberDiff line numberDiff line change
@@ -1667,6 +1667,7 @@ struct ImGuiIO
16671667
float KeysDownDurationPrev[512]; // Previous duration the key has been down
16681668
float NavInputsDownDuration[ImGuiNavInput_COUNT];
16691669
float NavInputsDownDurationPrev[ImGuiNavInput_COUNT];
1670+
float PenPressure; // Touch/Pen pressure (0.0f to 1.0f, should be >0.0f only when MouseDown[0] == true). Helper storage currently unused by Dear ImGui.
16701671
ImWchar16 InputQueueSurrogate; // For AddInputCharacterUTF16
16711672
ImVector<ImWchar> InputQueueCharacters; // Queue of _characters_ input (obtained by platform back-end). Fill using AddInputCharacter() helper.
16721673

0 commit comments

Comments
 (0)
Please sign in to comment.