Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Snake
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
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
KosmX
Snake
Commits
e4fe05f7
Commit
e4fe05f7
authored
4 years ago
by
KosmX
Browse files
Options
Downloads
Patches
Plain Diff
xd
parent
8cf2f863
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
multiplatformLib.c
+3
-1
3 additions, 1 deletion
multiplatformLib.c
tests/xperiments.c
+8
-3
8 additions, 3 deletions
tests/xperiments.c
with
11 additions
and
4 deletions
multiplatformLib.c
+
3
−
1
View file @
e4fe05f7
...
@@ -17,8 +17,10 @@
...
@@ -17,8 +17,10 @@
//This package is designed to do the basic operations like get char without waiting for enter or sleep
//This package is designed to do the basic operations like get char without waiting for enter or sleep
//and be able to compile on multiple OS like linux and windows.
//and be able to compile on multiple OS like linux and windows.
//returns the char or EOF
int
getNextChar
(){
//get next character if available
}
struct
Vec2i
getWindowSize
(){
struct
Vec2i
getWindowSize
(){
...
...
This diff is collapsed.
Click to expand it.
tests/xperiments.c
+
8
−
3
View file @
e4fe05f7
...
@@ -48,9 +48,14 @@ void xp3(){
...
@@ -48,9 +48,14 @@ void xp3(){
}
}
void
xp4
(){
void
xp4
(){
Sleep
(
1000
);
int
i
;
char
c
=
_getch
();
char
c
;
printf
(
"
\n
char: %c
\n
"
,
c
);
Sleep
(
5000
);
while
(
_kbhit
()){
c
=
getch
();
printf
(
"%c"
,
c
);
}
}
}
int
main
(
int
argc
,
char
const
*
argv
[])
int
main
(
int
argc
,
char
const
*
argv
[])
...
...
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