-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update FensterB with new mouse function
Fix mouse examples
- Loading branch information
1 parent
b4e0504
commit 50a0f58
Showing
6 changed files
with
27 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import fenstim, strutils | ||
|
||
var | ||
app = init(Fenster, "Mouse Buttons test", 800, 600) | ||
oldmouse = app.mouse | ||
|
||
while app.loop and app.keys[27] == 0: | ||
if oldmouse != app.mouse: | ||
oldmouse = app.mouse | ||
echo app.mouse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule fensterb
updated
11 files
+9 −1 | README.md | |
+0 −101 | examples/input-c/main.c | |
+0 −15 | examples/minimal-c/Makefile | |
+0 −0 | examples/mousebuttons-c/Makefile | |
+9 −24 | examples/mousebuttons-c/main.c | |
+0 −15 | examples/sound-c/Makefile | |
+0 −75 | examples/sound-c/main.c | |
+3 −1 | src/fenster/fenster.h | |
+9 −18 | src/fenster/fenster_linux.h | |
+14 −6 | src/fenster/fenster_mac.h | |
+14 −6 | src/fenster/fenster_windows.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters