summaryrefslogtreecommitdiff
path: root/src/win.rs
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-26 13:38:12 -0500
committerpommicket <pommicket@gmail.com>2023-01-26 13:38:12 -0500
commit57dfb60fdc38d7b4815087d71781e2b326c6939b (patch)
treee4a50b9944d5af0d242c3ca4c1a05fd8172e435a /src/win.rs
parentaaf92471dc68766faf401ce4bdbb2a271e68c964 (diff)
more documentation
Diffstat (limited to 'src/win.rs')
-rw-r--r--src/win.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/win.rs b/src/win.rs
index 08b0b05..a659b8e 100644
--- a/src/win.rs
+++ b/src/win.rs
@@ -1,3 +1,4 @@
+/// functions for opening windows and doing OpenGL stuff
// all OpenGL calls are done through the Window.
// this is because OpenGL is not thread safe.
use crate::sdl;
@@ -478,15 +479,15 @@ pub enum Event {
x: i32,
y: i32,
/// 1 for single-click, 2 for double-click, etc.
- clicks: u8
+ clicks: u8,
},
MouseButtonUp {
button: MouseButton,
x: i32,
y: i32,
/// 1 for single-click, 2 for double-click, etc.
- clicks: u8
- }
+ clicks: u8,
+ },
}
pub fn display_error_message(message: &str) {