mirror of
https://github.com/encounter/rust-sdl2.git
synced 2026-07-10 21:18:41 -07:00
Merge branch 'new-pr-for-reform' of git://github.com/bombless/rust-sdl2 into bombless-new-pr-for-reform
This commit is contained in:
+2
-2
@@ -27,8 +27,8 @@ pub fn main() {
|
||||
|
||||
loop {
|
||||
match poll_event() {
|
||||
Quit(_) => break,
|
||||
KeyDown(_, _, key, _, _, _) => {
|
||||
Quit{..} => break,
|
||||
KeyDown { keycode: key, .. } => {
|
||||
if key == KeyCode::Escape {
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -43,8 +43,8 @@ pub fn main() {
|
||||
|
||||
loop {
|
||||
match poll_event() {
|
||||
Quit(_) => break,
|
||||
KeyDown(_, _, key, _, _, _) => {
|
||||
Quit{..} => break,
|
||||
KeyDown { keycode: key, .. } => {
|
||||
if key == KeyCode::Escape {
|
||||
break;
|
||||
}
|
||||
|
||||
+474
-178
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user