Mention libxi-dev as dependency

This commit is contained in:
Lukas Dürrenberger 2024-12-23 18:34:34 +01:00 committed by Chris Thrasher
parent cc78fd04f3
commit ad2188e4a1

View File

@ -60,6 +60,11 @@ find_package(SFML 3 REQUIRED COMPONENTS Graphics Audio Network)
target_link_libraries(my_app PRIVATE SFML::Graphics SFML::Audio SFML::Network)
```
## Linux Dependencies
When using X11 as the backend on Linux, as opposed to DRM, `libxi-dev` is a newly required dependency.
This was introduces with the [raw mouse input support](https://www.sfml-dev.org/documentation/3.0.0/structsf_1_1Event_1_1MouseMovedRaw.html).
## `sf::Vector2<T>` Parameters
A common pattern in SFML 2 was to use pairs of scalar parameters to represent concepts like sizes or positions.