9 Commits
Author SHA1 Message Date
Guillaume Gomez 7fd7ee4447 run cargo fmt 2020-12-08 20:30:47 +01:00
Sunjay Varma 37cf5f76ac Replaced all calls to unwrap() in examples with either the ? operator or expect 2019-01-13 22:49:05 +01:00
Cobrand f1a76882d6 Fix clippy errors: first pass 2017-05-03 09:15:54 +02:00
Cobrand e5ab0023a3 Fix usage of isize 2016-12-06 22:26:56 +01:00
Machtan 877bb42cbb Make all examples work and all tests pass after the error/rect changes 2016-02-11 21:15:31 +01:00
Ryszard c794be4e2a Changes in example loops
- Changed 'while' loops into 'loop'-type loops with a lifetime, thus eliminating 'running' variable
- Moved 'use' statements out of the loop (one time is enought)
2015-10-14 00:52:11 +03:00
Dan Spencer b8de00fe52 Update examples 2015-07-27 02:06:25 -06:00
Dan Spencer 2af5dcfac4 Move Keycode and Scancode into the keyboard module, adjust spelling
* The `keycode` and `scancode` modules only contained a single enum each, so
it makes more sense to put them into the `keyboard` module.

* KeyCode -> Keycode, ScanCode -> Scancode.
A small detail, but this is consistent with SDL_Keycode and SDL_Scancode.
2015-06-14 02:04:34 -06:00
Dan Spencer 48f28dacc1 Create thread-safe Keyboard type, replace get_keyboard_state, add example 2015-06-14 00:55:09 -06:00