Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
STJr
SRB2
Commits
17636ccc
Commit
17636ccc
authored
Jan 1, 2020
by
LJ Sonic
Browse files
Options
Downloads
Patches
Plain Diff
Ungrab mouse when watching a record
parent
5bde4df4
No related branches found
No related tags found
2 merge requests
!734
Rebase Keycodes only branch.
,
!617
Let the mouse move freely when a menu is open or game is paused
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sdl/i_video.c
+1
-1
1 addition, 1 deletion
src/sdl/i_video.c
with
1 addition
and
1 deletion
src/sdl/i_video.c
+
1
−
1
View file @
17636ccc
...
...
@@ -109,7 +109,7 @@ static SDL_bool disable_fullscreen = SDL_FALSE;
#define USE_FULLSCREEN (disable_fullscreen||!allow_fullscreen)?0:cv_fullscreen.value
static
SDL_bool
disable_mouse
=
SDL_FALSE
;
#define USE_MOUSEINPUT (!disable_mouse && cv_usemouse.value && havefocus)
#define IGNORE_MOUSE (menuactive || paused || con_destlines || chat_on || gamestate != GS_LEVEL)
#define IGNORE_MOUSE (menuactive || paused || con_destlines || chat_on ||
demoplayback ||
gamestate != GS_LEVEL)
#define MOUSE_MENU false //(!disable_mouse && cv_usemouse.value && menuactive && !USE_FULLSCREEN)
#define MOUSEBUTTONS_MAX MOUSEBUTTONS
...
...
This diff is collapsed.
Click to expand it.
LJ Sonic
@LJSonic
mentioned in commit
e0e5e838
·
Jan 2, 2020
mentioned in commit
e0e5e838
mentioned in commit e0e5e83869e22beeb1dc6abc373d166dc2c1af99
Toggle commit list
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