Data about a single finger in a multitouch event.
More...
Each touch event is a collection of fingers that are simultaneously in contact with the touch device (so a "touch" can be a "multitouch," in reality), and this struct reports details of the specific fingers.
- Since
- This struct is available since SDL 3.2.0.
- See also
- GetTouchFingers
◆ Finger() [1/2]
constexpr SDL::Finger::Finger |
( |
const FingerRaw & |
finger = {} | ) |
|
|
inlineconstexpr |
- Parameters
-
finger | the value to be wrapped |
◆ Finger() [2/2]
constexpr SDL::Finger::Finger |
( |
SDL_FingerID |
id, |
|
|
float |
x, |
|
|
float |
y, |
|
|
float |
pressure |
|
) |
| |
|
inlineconstexpr |
- Parameters
-
id | the value for id. |
x | the value for x. |
y | the value for y. |
pressure | the value for pressure. |
◆ GetId()
constexpr SDL_FingerID SDL::Finger::GetId |
( |
| ) |
const |
|
inlineconstexpr |
◆ GetPressure()
constexpr float SDL::Finger::GetPressure |
( |
| ) |
const |
|
inlineconstexpr |
- Returns
- current pressure value.
◆ GetX()
constexpr float SDL::Finger::GetX |
( |
| ) |
const |
|
inlineconstexpr |
◆ GetY()
constexpr float SDL::Finger::GetY |
( |
| ) |
const |
|
inlineconstexpr |
◆ operator bool()
constexpr SDL::Finger::operator bool |
( |
| ) |
const |
|
inlineexplicitconstexpr |
- Returns
- True if valid state, false otherwise.
◆ SetId()
constexpr Finger & SDL::Finger::SetId |
( |
SDL_FingerID |
newId | ) |
|
|
inlineconstexpr |
- Parameters
-
- Returns
- Reference to self.
◆ SetPressure()
constexpr Finger & SDL::Finger::SetPressure |
( |
float |
newPressure | ) |
|
|
inlineconstexpr |
- Parameters
-
newPressure | the new pressure value. |
- Returns
- Reference to self.
◆ SetX()
constexpr Finger & SDL::Finger::SetX |
( |
float |
newX | ) |
|
|
inlineconstexpr |
- Parameters
-
- Returns
- Reference to self.
◆ SetY()
constexpr Finger & SDL::Finger::SetY |
( |
float |
newY | ) |
|
|
inlineconstexpr |
- Parameters
-
- Returns
- Reference to self.
The documentation for this struct was generated from the following file: