1
0
mirror of https://github.com/lxsang/Diya-API.git synced 2024-12-26 19:38:22 +01:00
Diya-API/Diya/SDL_TouchFingerEvent.extension.st

14 lines
338 B
Smalltalk
Raw Permalink Normal View History

2022-03-19 02:18:29 +01:00
Extension { #name : #'SDL_TouchFingerEvent' }
{ #category : #'*Diya' }
SDL_TouchFingerEvent >> triggableOn: aNode [
^ aNode inner: self worldPosition
]
{ #category : #'*Diya' }
SDL_TouchFingerEvent >> worldPosition [
2022-03-21 01:45:21 +01:00
|resolution|
resolution := DiyaRenderer resolution.
^((self x)* (resolution x) ) @ ((self y)* (resolution y)).
2022-03-19 02:18:29 +01:00
]