File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,10 @@ when upgrading from a version of rust-sdl2 to another.
3
3
4
4
### v0.31
5
5
6
+ [ PR #711 ] ( https://github.com/Rust-SDL2/rust-sdl2/pull/711 )
7
+
8
+ * ** Breaking change** Change HatState::Leftdown casing into HatState::LeftDown to be consistent with naming.
9
+
6
10
[ PR #673 ] ( https://github.com/Rust-sdl2/rust-sdl2/pull/673 )
7
11
8
12
* Support Audio Capture in AudioCallbacks.
@@ -11,7 +15,7 @@ when upgrading from a version of rust-sdl2 to another.
11
15
12
16
* ** Breaking change** Make get\_ swap\_ interval return an enum instead of i32
13
17
* The signature of set\_ swap\_ interval has been changed as well, but it shouldn't
14
- breaking exisitng code too much.
18
+ breaking existing code too much.
15
19
16
20
[ PR #683 ] ( https://github.com/Rust-sdl2/rust-sdl2/pull/684 )
17
21
Original file line number Diff line number Diff line change @@ -376,7 +376,7 @@ pub enum HatState {
376
376
RightUp = 0x02 | 0x01 ,
377
377
RightDown = 0x02 | 0x04 ,
378
378
LeftUp = 0x08 | 0x01 ,
379
- Leftdown = 0x08 | 0x04 ,
379
+ LeftDown = 0x08 | 0x04 ,
380
380
}
381
381
382
382
impl HatState {
@@ -390,7 +390,7 @@ impl HatState {
390
390
3 => HatState :: RightUp ,
391
391
6 => HatState :: RightDown ,
392
392
9 => HatState :: LeftUp ,
393
- 12 => HatState :: Leftdown ,
393
+ 12 => HatState :: LeftDown ,
394
394
_ => panic ! ( "Unexpected hat position: {}" , raw) ,
395
395
}
396
396
}
@@ -405,7 +405,7 @@ impl HatState {
405
405
HatState :: RightUp => 3 ,
406
406
HatState :: RightDown => 6 ,
407
407
HatState :: LeftUp => 9 ,
408
- HatState :: Leftdown => 12 ,
408
+ HatState :: LeftDown => 12 ,
409
409
}
410
410
411
411
}
You can’t perform that action at this time.
0 commit comments