TouchButtonLayout struct
#include <Jazz2/PreferencesCache.h>
Per-button layout stored in user preferences.
Holds the persisted on-screen placement of a single touch button: its anchor edge, the offset from that edge in reference pixels and a size scale factor. One entry is stored per TouchButtonSlot in PreferencesCache::
Public variables
- Vector2f EdgeOffset
- Offset from the anchor edge in reference pixels (DefaultWidth * 0.5 = 360).
- float Scale
- Size scale factor (0.5 = half size, 1.0 = default, 3.0 = triple size).
- TouchButtonAnchor Anchor
- Which screen corner this button is anchored to.