mirror of
https://github.com/lxsang/Diya-API.git
synced 2024-12-26 11:28:22 +01:00
14 lines
338 B
Smalltalk
14 lines
338 B
Smalltalk
Extension { #name : #'SDL_TouchFingerEvent' }
|
|
|
|
{ #category : #'*Diya' }
|
|
SDL_TouchFingerEvent >> triggableOn: aNode [
|
|
^ aNode inner: self worldPosition
|
|
]
|
|
|
|
{ #category : #'*Diya' }
|
|
SDL_TouchFingerEvent >> worldPosition [
|
|
|resolution|
|
|
resolution := DiyaRenderer resolution.
|
|
^((self x)* (resolution x) ) @ ((self y)* (resolution y)).
|
|
]
|