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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
STJr
SRB2
Commits
9fc58d0a
Commit
9fc58d0a
authored
6 years ago
by
Marco Z
Browse files
Options
Downloads
Plain Diff
Merge branch 'control-selector' into tutorial-time
parents
3be99812
c7a855de
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/g_input.c
+8
-3
8 additions, 3 deletions
src/g_input.c
src/g_input.h
+3
-1
3 additions, 1 deletion
src/g_input.h
with
11 additions
and
4 deletions
src/g_input.c
+
8
−
3
View file @
9fc58d0a
...
@@ -50,9 +50,14 @@ INT32 gamecontroldefault[num_gamecontrolschemes][num_gamecontrols][2]; // defaul
...
@@ -50,9 +50,14 @@ INT32 gamecontroldefault[num_gamecontrolschemes][num_gamecontrols][2]; // defaul
// lists of GC codes for selective operation
// lists of GC codes for selective operation
const
INT32
gclist_tutorial
[
num_gclist_tutorial
]
=
{
const
INT32
gclist_tutorial
[
num_gclist_tutorial
]
=
{
gc_forward
,
gc_backward
,
gc_strafeleft
,
gc_straferight
,
gc_forward
,
gc_backward
,
gc_strafeleft
,
gc_straferight
,
gc_lookup
,
gc_lookdown
,
gc_turnleft
,
gc_turnright
//, gc_centerview,
gc_lookup
,
gc_lookdown
,
gc_turnleft
,
gc_turnright
,
gc_centerview
,
//gc_jump, gc_use,
gc_jump
,
gc_use
,
//gc_fire, gc_firenormal
gc_fire
,
gc_firenormal
};
const
INT32
gclist_tutorial_check
[
num_gclist_tutorial_check
]
=
{
gc_forward
,
gc_backward
,
gc_strafeleft
,
gc_straferight
,
gc_turnleft
,
gc_turnright
};
};
const
INT32
gclist_movement
[
num_gclist_movement
]
=
{
const
INT32
gclist_movement
[
num_gclist_movement
]
=
{
...
...
This diff is collapsed.
Click to expand it.
src/g_input.h
+
3
−
1
View file @
9fc58d0a
...
@@ -128,13 +128,15 @@ extern INT32 gamecontroldefault[num_gamecontrolschemes][num_gamecontrols][2]; //
...
@@ -128,13 +128,15 @@ extern INT32 gamecontroldefault[num_gamecontrolschemes][num_gamecontrols][2]; //
#define PLAYER1INPUTDOWN(gc) (gamekeydown[gamecontrol[gc][0]] || gamekeydown[gamecontrol[gc][1]])
#define PLAYER1INPUTDOWN(gc) (gamekeydown[gamecontrol[gc][0]] || gamekeydown[gamecontrol[gc][1]])
#define PLAYER2INPUTDOWN(gc) (gamekeydown[gamecontrolbis[gc][0]] || gamekeydown[gamecontrolbis[gc][1]])
#define PLAYER2INPUTDOWN(gc) (gamekeydown[gamecontrolbis[gc][0]] || gamekeydown[gamecontrolbis[gc][1]])
#define num_gclist_tutorial 8 // 13
#define num_gclist_tutorial 13
#define num_gclist_tutorial_check 6
#define num_gclist_movement 4
#define num_gclist_movement 4
#define num_gclist_camera 2
#define num_gclist_camera 2
#define num_gclist_jump 1
#define num_gclist_jump 1
#define num_gclist_use 1
#define num_gclist_use 1
extern
const
INT32
gclist_tutorial
[
num_gclist_tutorial
];
extern
const
INT32
gclist_tutorial
[
num_gclist_tutorial
];
extern
const
INT32
gclist_tutorial_check
[
num_gclist_tutorial_check
];
extern
const
INT32
gclist_movement
[
num_gclist_movement
];
extern
const
INT32
gclist_movement
[
num_gclist_movement
];
extern
const
INT32
gclist_camera
[
num_gclist_camera
];
extern
const
INT32
gclist_camera
[
num_gclist_camera
];
extern
const
INT32
gclist_jump
[
num_gclist_jump
];
extern
const
INT32
gclist_jump
[
num_gclist_jump
];
...
...
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