Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
sbbs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Eric
sbbs
Commits
c0576a0f
Commit
c0576a0f
authored
4 years ago
by
Rob Swindell
Browse files
Options
Downloads
Patches
Plain Diff
Support for cursor movement keys (e.g. ANSI) - no more NumLock!
parent
b9ee6b4f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xtrn/tbd/tbd.c
+8
-0
8 additions, 0 deletions
xtrn/tbd/tbd.c
with
8 additions
and
0 deletions
xtrn/tbd/tbd.c
+
8
−
0
View file @
c0576a0f
...
...
@@ -370,6 +370,7 @@ void movement(int sx,int sy,int sz,int sgx,int sgy)
break
;
case
'4'
:
/* Move West */
case
'A'
:
case
TERM_KEY_LEFT
:
check
=
inway
(
x
,
y
,
z
,
gx
-
1
,
gy
);
if
(
weapon_ready
)
{
tpic
=
LEFT
;
if
(
check
)
...
...
@@ -404,6 +405,7 @@ void movement(int sx,int sy,int sz,int sgx,int sgy)
break
;
case
'6'
:
/* Move East */
case
'D'
:
case
TERM_KEY_RIGHT
:
check
=
inway
(
x
,
y
,
z
,
gx
+
1
,
gy
);
if
(
weapon_ready
)
{
tpic
=
RIGHT
;
if
(
check
)
...
...
@@ -438,6 +440,7 @@ void movement(int sx,int sy,int sz,int sgx,int sgy)
break
;
case
'2'
:
/* Move South */
case
'X'
:
case
TERM_KEY_DOWN
:
check
=
inway
(
x
,
y
,
z
,
gx
,
gy
+
1
);
if
(
weapon_ready
)
{
tpic
=
DOWN
;
if
(
check
)
...
...
@@ -474,6 +477,7 @@ void movement(int sx,int sy,int sz,int sgx,int sgy)
break
;
case
'8'
:
/* Move North */
case
'W'
:
case
TERM_KEY_UP
:
check
=
inway
(
x
,
y
,
z
,
gx
,
gy
-
1
);
if
(
weapon_ready
)
{
tpic
=
UP
;
if
(
check
)
...
...
@@ -512,6 +516,7 @@ void movement(int sx,int sy,int sz,int sgx,int sgy)
break
;
case
'7'
:
/* Move NorthWest */
case
'Q'
:
case
TERM_KEY_HOME
:
check
=
inway
(
x
,
y
,
z
,
gx
-
1
,
gy
-
1
);
if
(
weapon_ready
)
{
tpic
=
UP
;
if
(
check
)
...
...
@@ -534,6 +539,7 @@ void movement(int sx,int sy,int sz,int sgx,int sgy)
break
;
case
'9'
:
/* Move NorthEast */
case
'E'
:
case
TERM_KEY_PAGEUP
:
check
=
inway
(
x
,
y
,
z
,
gx
+
1
,
gy
-
1
);
if
(
weapon_ready
)
{
tpic
=
UP
;
if
(
check
)
...
...
@@ -556,6 +562,7 @@ void movement(int sx,int sy,int sz,int sgx,int sgy)
break
;
case
'1'
:
/* Move SouthWest */
case
'Z'
:
case
TERM_KEY_END
:
check
=
inway
(
x
,
y
,
z
,
gx
-
1
,
gy
+
1
);
if
(
weapon_ready
)
{
tpic
=
DOWN
;
if
(
check
)
...
...
@@ -578,6 +585,7 @@ void movement(int sx,int sy,int sz,int sgx,int sgy)
break
;
case
'3'
:
/* Move SouthEast */
case
'C'
:
case
TERM_KEY_PAGEDN
:
check
=
inway
(
x
,
y
,
z
,
gx
+
1
,
gy
+
1
);
if
(
weapon_ready
)
{
tpic
=
DOWN
;
if
(
check
)
...
...
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