mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-16 22:00:05 -04:00
ad53af5c78
* WIP touch controls * Action icons * Updates * Don't mutate freeCamera config; allow switching between touch and controller cam * Wow * Fix build & add Skip button * Fix build & add settings * RCSS cleanup * Dpad and fishing, might redo * Add menu mouse controls * More pointer & fix icons * Optimizations & introduce layout system * Update aurora * Implement touch controls layout editor * Cleanup & fixes * Allow disabling mouse/touch in menus * More fixes
13 lines
312 B
C++
13 lines
312 B
C++
#pragma once
|
|
|
|
namespace dusk::touch_camera {
|
|
|
|
constexpr float YAW_DEGREES_PER_DP = 0.34f;
|
|
constexpr float PITCH_DEGREES_PER_DP = 0.22f;
|
|
|
|
void add_delta(float yaw_dp, float pitch_dp) noexcept;
|
|
bool consume_delta(float& yaw_dp, float& pitch_dp) noexcept;
|
|
void clear() noexcept;
|
|
|
|
} // namespace dusk::touch_camera
|