Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
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
Main
Synchronet
Commits
6cf2657a
Commit
6cf2657a
authored
20 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Add od_key_pending() function... returns TRUE if a key is...
ng.
parent
951831df
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/odoors/ODCore.c
+31
-0
31 additions, 0 deletions
src/odoors/ODCore.c
src/odoors/ODoorW.lib
+0
-0
0 additions, 0 deletions
src/odoors/ODoorW.lib
src/odoors/ODoors62.dll
+0
-0
0 additions, 0 deletions
src/odoors/ODoors62.dll
src/odoors/OpenDoor.h
+2
-0
2 additions, 0 deletions
src/odoors/OpenDoor.h
with
33 additions
and
0 deletions
src/odoors/ODCore.c
+
31
−
0
View file @
6cf2657a
...
...
@@ -402,6 +402,37 @@ ODAPIDEF void ODCALL od_clear_keybuffer(void)
OD_API_EXIT
();
}
/* ----------------------------------------------------------------------------
* od_key_pending()
*
* Returns TRUE if there's a key pending, FALSE otherwise.
*
* Parameters: none
*
* Return: TRUE if character is waiting, FALSE if no character is waiting.
*/
ODAPIDEF
BOOL
ODCALL
od_key_pending
(
void
)
{
/* Initialize OpenDoors if it hasn't already been done. */
if
(
!
bODInitialized
)
od_init
();
/* Log function entry if running in trace mode. */
TRACE
(
TRACE_API
,
"od_get_key()"
);
OD_API_ENTRY
();
/* Call the OpenDoors kernel. */
CALL_KERNEL_IF_NEEDED
();
if
(
!
ODInQueueWaiting
(
hODInputQueue
))
{
OD_API_EXIT
();
return
(
FALSE
);
}
OD_API_EXIT
();
return
(
TRUE
);
}
/* ----------------------------------------------------------------------------
* od_get_key()
...
...
This diff is collapsed.
Click to expand it.
src/odoors/ODoorW.lib
+
0
−
0
View file @
6cf2657a
No preview for this file type
This diff is collapsed.
Click to expand it.
src/odoors/ODoors62.dll
+
0
−
0
View file @
6cf2657a
No preview for this file type
This diff is collapsed.
Click to expand it.
src/odoors/OpenDoor.h
+
2
−
0
View file @
6cf2657a
...
...
@@ -915,6 +915,7 @@ od_control;
* od_edit_str() - Fancy formatted string input function (ANS/AVT)
* od_clear_keybuffer() - Removes any waiting keys in keyboard buffer
* od_multiline_edit() - Edits text that spans multiple lines (ANS/AVT)
* od_key_pending() - Returns TRUE if a key is waiting to be processed
*
* COMMON DOOR ACTIVITY FUNCTIONS
* od_page() - Allows user to page sysop
...
...
@@ -962,6 +963,7 @@ ODAPIDEF char ODCALL od_get_answer(char *pszOptions);
ODAPIDEF
void
ODCALL
od_get_cursor
(
INT
*
pnRow
,
INT
*
pnColumn
);
ODAPIDEF
BOOL
ODCALL
od_get_input
(
tODInputEvent
*
pInputEvent
,
tODMilliSec
TimeToWait
,
WORD
wFlags
);
ODAPIDEF
BOOL
ODCALL
od_key_pending
(
void
);
ODAPIDEF
char
ODCALL
od_get_key
(
BOOL
bWait
);
ODAPIDEF
BOOL
ODCALL
od_gettext
(
INT
nLeft
,
INT
nTop
,
INT
nRight
,
INT
nBottom
,
void
*
pBlock
);
...
...
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