mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
games/snake: Fix terminal issue after returning back from snake game
Fix terminal issue after returning back from game Signed-off-by: Eren Terzioglu <eren.terzioglu@espressif.com>
This commit is contained in:
parent
d27d6e635f
commit
9ea3fc6995
3 changed files with 41 additions and 0 deletions
|
|
@ -147,6 +147,27 @@ int dev_input_init(FAR struct input_state_s *dev)
|
|||
return OK;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: dev_input_deinit
|
||||
*
|
||||
* Description:
|
||||
* Deinitialize input method.
|
||||
*
|
||||
* Parameters:
|
||||
* None
|
||||
*
|
||||
* Returned Value:
|
||||
* Zero (OK)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
int dev_input_deinit(void)
|
||||
{
|
||||
reset_termios();
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: dev_read_input
|
||||
*
|
||||
|
|
|
|||
|
|
@ -116,6 +116,25 @@ int dev_input_init(FAR struct input_state_s *dev)
|
|||
return OK;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: dev_input_deinit
|
||||
*
|
||||
* Description:
|
||||
* Deinitialize input method.
|
||||
*
|
||||
* Parameters:
|
||||
* None
|
||||
*
|
||||
* Returned Value:
|
||||
* Zero (OK)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
int dev_input_deinit(void)
|
||||
{
|
||||
return OK;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: dev_read_input
|
||||
*
|
||||
|
|
|
|||
|
|
@ -737,5 +737,6 @@ restart:
|
|||
goto restart;
|
||||
}
|
||||
|
||||
dev_input_deinit();
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue