Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
glow-extras
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonathan Kunstwald
glow-extras
Commits
edffb3ae
Commit
edffb3ae
authored
7 years ago
by
Philip Trettner
Browse files
Options
Downloads
Patches
Plain Diff
proper handling of GLFW_REPEAT
parent
6e42a8e1
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
glfw/glow-extras/glfw/GlfwApp.cc
+5
-5
5 additions, 5 deletions
glfw/glow-extras/glfw/GlfwApp.cc
with
5 additions
and
5 deletions
glfw/glow-extras/glfw/GlfwApp.cc
+
5
−
5
View file @
edffb3ae
...
...
@@ -163,7 +163,7 @@ bool GlfwApp::onKey(int key, int scancode, int action, int mods)
if
(
TwEventKeyGLFW
(
mWindow
,
key
,
scancode
,
action
,
mods
))
return
true
;
if
(
key
==
GLFW_KEY_HOME
&&
action
=
=
GLFW_
P
RE
SS
)
if
(
key
==
GLFW_KEY_HOME
&&
action
!
=
GLFW_RE
LEASE
)
{
onResetView
();
return
true
;
...
...
@@ -242,17 +242,17 @@ bool GlfwApp::onMouseButton(double x, double y, int button, int action, int mods
if
(
TwEventMouseButtonGLFW
(
mWindow
,
button
,
action
,
mods
))
return
true
;
if
(
button
==
GLFW_MOUSE_BUTTON_LEFT
&&
action
=
=
GLFW_
P
RE
SS
)
if
(
button
==
GLFW_MOUSE_BUTTON_LEFT
&&
action
!
=
GLFW_RE
LEASE
)
mMouseLeft
=
true
;
if
(
button
==
GLFW_MOUSE_BUTTON_RIGHT
&&
action
=
=
GLFW_
P
RE
SS
)
if
(
button
==
GLFW_MOUSE_BUTTON_RIGHT
&&
action
!
=
GLFW_RE
LEASE
)
mMouseRight
=
true
;
// Double [MMB] (no mods) -> reset view
if
(
button
==
GLFW_MOUSE_BUTTON_MIDDLE
&&
action
=
=
GLFW_
P
RE
SS
&&
clickCount
>
1
&&
mods
==
0
)
if
(
button
==
GLFW_MOUSE_BUTTON_MIDDLE
&&
action
!
=
GLFW_RE
LEASE
&&
clickCount
>
1
&&
mods
==
0
)
onResetView
();
// Double [LMB] (no mods) -> center on pos
if
(
mUseDefaultCameraHandlingLeft
&&
button
==
GLFW_MOUSE_BUTTON_LEFT
&&
action
=
=
GLFW_
P
RE
SS
&&
clickCount
>
1
&&
mods
==
0
)
if
(
mUseDefaultCameraHandlingLeft
&&
button
==
GLFW_MOUSE_BUTTON_LEFT
&&
action
!
=
GLFW_RE
LEASE
&&
clickCount
>
1
&&
mods
==
0
)
{
glm
::
vec3
pos
;
float
depth
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment