/
erlang.spawn
/
fallout2-ce
Обзор
Документация
Войти
/
erlang.spawn
/
fallout2-ce
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
continious
src/touch.h
42 строки
801 B
tectiv3
iOS/iPad: touch gestures, HUD tap-through, and quick-actions toolbar (#377)
29 апр 2026, 09:20
Не верифицирован
29 апр 2026, 09:20
4382ec3
Код
Авторство
О чём код?
#ifndef FALLOUT_TOUCH_H_ #define FALLOUT_TOUCH_H_ #include <SDL.h> namespace fallout { enum GestureType { kUnrecognized, kTap, kLongPress, kPan, }; enum GestureState { kPossible, kBegan, kChanged, kEnded, }; struct Gesture { GestureType type; GestureState state; int numberOfTouches; int x; int y; }; void touch_handle_start(SDL_TouchFingerEvent* event); void touch_handle_move(SDL_TouchFingerEvent* event); void touch_handle_end(SDL_TouchFingerEvent* event); void touch_process_gesture(); bool touch_get_gesture(Gesture* gesture); void touch_set_touchscreen_mode(const bool value); bool touch_get_touchscreen_mode(); void touch_set_pan_mode(const bool value); bool touch_get_pan_mode(); } // namespace fallout #endif /* FALLOUT_TOUCH_H_ */