GUI: several mobile changes
This commit is contained in:
parent
f84469e4fd
commit
69059dc702
12 changed files with 50 additions and 35 deletions
|
|
@ -53,7 +53,7 @@
|
|||
_wi->std.waveMacro.vScroll=-1; \
|
||||
}
|
||||
|
||||
#define CHECK_LONG_HOLD (mobileUI && ImGui::GetIO().MouseDown[ImGuiMouseButton_Left] && ImGui::GetIO().MouseDownDuration[ImGuiMouseButton_Left]>=longThreshold && ImGui::GetIO().MouseDownDurationPrev[ImGuiMouseButton_Left]<longThreshold && !ImGui::IsInertialScroll())
|
||||
#define CHECK_LONG_HOLD (mobileUI && ImGui::GetIO().MouseDown[ImGuiMouseButton_Left] && ImGui::GetIO().MouseDownDuration[ImGuiMouseButton_Left]>=longThreshold && ImGui::GetIO().MouseDownDurationPrev[ImGuiMouseButton_Left]<longThreshold && ImGui::GetIO().MouseDragMaxDistanceSqr[ImGuiMouseButton_Left]<=ImGui::GetIO().ConfigInertialScrollToleranceSqr)
|
||||
|
||||
// for now
|
||||
#define NOTIFY_LONG_HOLD \
|
||||
|
|
@ -63,6 +63,7 @@
|
|||
} \
|
||||
} else { \
|
||||
fputc(7,stderr); /* bell */ \
|
||||
logI("beep!"); \
|
||||
}
|
||||
|
||||
#define BIND_FOR(x) getKeyName(actionKeys[x],true).c_str()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue