diff options
author | Uros Majstorovic <majstor@majstor.org> | 2020-06-08 14:25:36 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2020-06-08 14:25:36 +0200 |
commit | 910c890ab07157cdf4710194d98a45a7fcf4cee3 (patch) | |
tree | b3677f95f6a5cf1f61910e280b834b862abbc6c9 /code/fe310/eos/eve/eve_track.h | |
parent | 4ed8eb19f573d15b1b0526b2588bf20758b4f374 (diff) |
touch extended tracking refactor
Diffstat (limited to 'code/fe310/eos/eve/eve_track.h')
-rw-r--r-- | code/fe310/eos/eve/eve_track.h | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/code/fe310/eos/eve/eve_track.h b/code/fe310/eos/eve/eve_track.h index 07ddb44..a5fd113 100644 --- a/code/fe310/eos/eve/eve_track.h +++ b/code/fe310/eos/eve/eve_track.h @@ -4,16 +4,6 @@ #define EVE_TRACK_TYPE_OSC 2 #define EVE_TRACK_FRICTION 500 -typedef void (*eve_track_init_t) (EVETouchTimer *, EVETouch *); -typedef int (*eve_track_tick_t) (EVETouchTimer *, EVETouch *); -typedef void (*eve_track_stop_t) (EVETouchTimer *, EVETouch *); - -typedef struct EVETracker { - eve_track_init_t init; - eve_track_tick_t tick; - eve_track_stop_t stop; -} EVETracker; - typedef struct EVETrackOsc { int x; int y; @@ -23,13 +13,10 @@ typedef struct EVETrackOsc { uint32_t t_max; } EVETrackOsc; -void eve_init_track(void); -EVETracker *eve_track_get_tracker(void); -void eve_track_set_handler(eve_track_init_t init, eve_track_tick_t tick, eve_track_stop_t stop, void *param); +void eve_track_init(void); void eve_track_set(uint8_t type, void *param); -void eve_track_stop(EVETouchTimer *timer, EVETouch *touch); void eve_track_inert_init(EVETouchTimer *timer, EVETouch *touch); int eve_track_inert_tick(EVETouchTimer *timer, EVETouch *touch); -int eve_track_osc_tick(EVETouchTimer *timer, EVETouch *touch); void eve_track_osc_init(EVETrackOsc *p, int x, int y, uint32_t T, double d, uint32_t t_max); +int eve_track_osc_tick(EVETouchTimer *timer, EVETouch *touch); |