Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
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
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Carl Shapiro
cmucl
Commits
ad0ba111
Commit
ad0ba111
authored
27 years ago
by
pw
Browse files
Options
Downloads
Patches
Plain Diff
From Fred Gilham, pressing certain keys (eg control or function) would
cause the game to blow up. This change makes it behave better.
parent
4d573d2f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
contrib/games/feebs/feebs.lisp
+7
-1
7 additions, 1 deletion
contrib/games/feebs/feebs.lisp
with
7 additions
and
1 deletion
contrib/games/feebs/feebs.lisp
+
7
−
1
View file @
ad0ba111
...
...
@@ -1015,6 +1015,7 @@
(
defconstant
blow-away-feebs-character
#\q
)
(
defconstant
single-step-feebs-character
#\s
)
(
defconstant
auto-mode-feebs-character
#\a
)
(
defconstant
feebs-noop-character
#\z
)
;;; Create an object set of windows to receive certain events from X.
...
...
@@ -1062,7 +1063,12 @@
(
defun
translate-character
(
scan-code
bits
)
(
ext:key-event-char
(
ext:translate-key-event
*display*
scan-code
bits
)))
(
let
((
key-event
(
ext:translate-key-event
*display*
scan-code
bits
))
(
retval
feebs-noop-character
))
(
if
key-event
(
let
((
char
(
ext:key-event-char
key-event
)))
(
if
char
(
setf
retval
char
))))
retval
))
;;; Check which key was pressed and do the appropriate thing.
...
...
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