File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -204,8 +204,8 @@ impl Buttons {
204
204
205
205
/// Get the current touch pad state.
206
206
#[ must_use]
207
- pub fn read_pad ( peer : Peer ) -> Option < Pad > {
208
- let raw = unsafe { bindings:: read_pad ( peer . 0 as u32 ) } ;
207
+ pub fn read_pad ( p : Peer ) -> Option < Pad > {
208
+ let raw = unsafe { bindings:: read_pad ( p . 0 as u32 ) } ;
209
209
if raw == 0xffff {
210
210
None
211
211
} else {
@@ -218,8 +218,8 @@ pub fn read_pad(peer: Peer) -> Option<Pad> {
218
218
219
219
/// Get the currently pressed buttons.
220
220
#[ must_use]
221
- pub fn read_buttons ( peer : Peer ) -> Buttons {
222
- let raw = unsafe { bindings:: read_buttons ( peer . 0 as u32 ) } ;
221
+ pub fn read_buttons ( p : Peer ) -> Buttons {
222
+ let raw = unsafe { bindings:: read_buttons ( p . 0 as u32 ) } ;
223
223
Buttons {
224
224
a : has_bit_set ( raw, 0 ) ,
225
225
b : has_bit_set ( raw, 1 ) ,
You can’t perform that action at this time.
0 commit comments