menu_navigation_ctl - cleanups
This commit is contained in:
parent
5f4827f6d9
commit
1d804951bb
|
@ -28,7 +28,12 @@
|
||||||
bool menu_navigation_ctl(enum menu_navigation_ctl_state state, void *data)
|
bool menu_navigation_ctl(enum menu_navigation_ctl_state state, void *data)
|
||||||
{
|
{
|
||||||
const menu_ctx_driver_t *driver = menu_ctx_driver_get_ptr();
|
const menu_ctx_driver_t *driver = menu_ctx_driver_get_ptr();
|
||||||
|
settings_t *settings = config_get_ptr();
|
||||||
menu_navigation_t *nav = menu_navigation_get_ptr();
|
menu_navigation_t *nav = menu_navigation_get_ptr();
|
||||||
|
menu_list_t *menu_list = menu_list_get_ptr();
|
||||||
|
|
||||||
|
(void)menu_list;
|
||||||
|
(void)settings;
|
||||||
|
|
||||||
switch (state)
|
switch (state)
|
||||||
{
|
{
|
||||||
|
@ -45,8 +50,6 @@ bool menu_navigation_ctl(enum menu_navigation_ctl_state state, void *data)
|
||||||
return true;
|
return true;
|
||||||
case MENU_NAVIGATION_CTL_INCREMENT:
|
case MENU_NAVIGATION_CTL_INCREMENT:
|
||||||
{
|
{
|
||||||
settings_t *settings = config_get_ptr();
|
|
||||||
menu_list_t *menu_list = menu_list_get_ptr();
|
|
||||||
size_t selection = nav->selection_ptr;
|
size_t selection = nav->selection_ptr;
|
||||||
unsigned *scroll_speed = (unsigned*)data;
|
unsigned *scroll_speed = (unsigned*)data;
|
||||||
|
|
||||||
|
@ -77,8 +80,6 @@ bool menu_navigation_ctl(enum menu_navigation_ctl_state state, void *data)
|
||||||
return true;
|
return true;
|
||||||
case MENU_NAVIGATION_CTL_DECREMENT:
|
case MENU_NAVIGATION_CTL_DECREMENT:
|
||||||
{
|
{
|
||||||
menu_list_t *menu_list = menu_list_get_ptr();
|
|
||||||
settings_t *settings = config_get_ptr();
|
|
||||||
size_t selection = nav->selection_ptr;
|
size_t selection = nav->selection_ptr;
|
||||||
unsigned *scroll_speed = (unsigned*)data;
|
unsigned *scroll_speed = (unsigned*)data;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue