File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -5,20 +5,20 @@ pub use sys::touch as ll;
5
5
pub type Finger = ll:: Finger ;
6
6
pub type TouchDevice = ll:: TouchDevice ;
7
7
8
- pub fn get_num_touch_devices ( ) -> isize {
9
- unsafe { ll:: SDL_GetNumTouchDevices ( ) as isize }
8
+ pub fn get_num_touch_devices ( ) -> i32 {
9
+ unsafe { ll:: SDL_GetNumTouchDevices ( ) }
10
10
}
11
11
12
- pub fn get_touch_device ( index : isize ) -> TouchDevice {
13
- unsafe { ll:: SDL_GetTouchDevice ( index as i32 ) }
12
+ pub fn get_touch_device ( index : i32 ) -> TouchDevice {
13
+ unsafe { ll:: SDL_GetTouchDevice ( index) }
14
14
}
15
15
16
16
pub fn get_num_touch_fingers ( touch : TouchDevice ) -> isize {
17
17
unsafe { ll:: SDL_GetNumTouchFingers ( touch) as isize }
18
18
}
19
19
20
- pub fn get_touch_finger ( touch : TouchDevice , index : isize ) -> Option < Finger > {
21
- let raw = unsafe { ll:: SDL_GetTouchFinger ( touch, index as i32 ) } ;
20
+ pub fn get_touch_finger ( touch : TouchDevice , index : i32 ) -> Option < Finger > {
21
+ let raw = unsafe { ll:: SDL_GetTouchFinger ( touch, index) } ;
22
22
23
23
if raw == ptr:: null ( ) {
24
24
None
You can’t perform that action at this time.
0 commit comments