src/gui/spotify/spotify.c
// Setup Button Functions
// Rem out any you don't want to overwrite, only one function cb per enum
Setup Button Functions
Rem out any you don't want to overwrite, only one function cb per enum
Setup Button Functions Rem out any you don ' t want to overwrite only one function cb per enum
void pg_spotifyButtonSetFuncs() {
  lib_buttonsSetCallbackFunc(E_BUTTON_ROTARY_CW, &pg_spotifyButtonRotaryCW);
  lib_buttonsSetCallbackFunc(E_BUTTON_ROTARY_CCW, &pg_spotifyButtonRotaryCCW);
  lib_buttonsSetCallbackFunc(E_BUTTON_LEFT_RELEASED, &pg_spotifyButtonLeftPressed);
  lib_buttonsSetCallbackFunc(E_BUTTON_RIGHT_RELEASED, &pg_spotifyButtonRightPressed);
  lib_buttonsSetCallbackFunc(E_BUTTON_ROTARY_RELEASED, &pg_spotifyButtonRotaryPressed);
  lib_buttonsSetCallbackFunc(E_BUTTON_LEFT_HELD, &pg_spotifyButtonLeftHeld);
  lib_buttonsSetCallbackFunc(E_BUTTON_RIGHT_HELD, &pg_spotifyButtonRightHeld);
}
void pg_spotifyButtonSetFuncs ( ) { lib_buttonsSetCallbackFunc ( E_BUTTON_ROTARY_CW , & pg_spotifyButtonRotaryCW ) ; lib_buttonsSetCallbackFunc ( E_BUTTON_ROTARY_CCW , & pg_spotifyButtonRotaryCCW ) ; lib_buttonsSetCallbackFunc ( E_BUTTON_LEFT_RELEASED , & pg_spotifyButtonLeftPressed ) ; lib_buttonsSetCallbackFunc ( E_BUTTON_RIGHT_RELEASED , & pg_spotifyButtonRightPressed ) ; lib_buttonsSetCallbackFunc ( E_BUTTON_ROTARY_RELEASED , & pg_spotifyButtonRotaryPressed ) ; lib_buttonsSetCallbackFunc ( E_BUTTON_LEFT_HELD , & pg_spotifyButtonLeftHeld ) ; lib_buttonsSetCallbackFunc ( E_BUTTON_RIGHT_HELD , & pg_spotifyButtonRightHeld ) ; }
Setup Button Functions
Rem out any you don't want to overwrite, only one function cb per enum
Setup Button Functions Rem out any you don ' t want to overwrite only one function cb per enum