Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing VRU dummyinput function definitions #1108

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/plugin/dummy_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,23 @@ void dummyinput_SDL_KeyUp(int keymod, int keysym)
void dummyinput_RenderCallback(void)
{
}

void dummyinput_SendVRUWord(uint16_t length, uint16_t *word, uint8_t lang)
{
}

void dummyinput_SetMicState(int state)
{
}

void dummyinput_ReadVRUResults(uint16_t *error_flags, uint16_t *num_results, uint16_t *mic_level, uint16_t *voice_level, uint16_t *voice_length, uint16_t *matches)
{
}

void dummyinput_ClearVRUWords(uint8_t lenght)
{
}

void dummyinput_SetVRUWordMask(uint8_t length, uint8_t *mask)
{
}
5 changes: 5 additions & 0 deletions src/plugin/dummy_input.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ extern void dummyinput_RomClosed(void);
extern void dummyinput_SDL_KeyDown(int keymod, int keysym);
extern void dummyinput_SDL_KeyUp(int keymod, int keysym);
extern void dummyinput_RenderCallback(void);
extern void dummyinput_SendVRUWord(uint16_t length, uint16_t *word, uint8_t lang);
extern void dummyinput_SetMicState(int state);
extern void dummyinput_ReadVRUResults(uint16_t *error_flags, uint16_t *num_results, uint16_t *mic_level, uint16_t *voice_level, uint16_t *voice_length, uint16_t *matches);
extern void dummyinput_ClearVRUWords(uint8_t lenght);
extern void dummyinput_SetVRUWordMask(uint8_t length, uint8_t *mask);

#endif /* DUMMY_INPUT_H */

Expand Down
7 changes: 6 additions & 1 deletion src/plugin/plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,12 @@ static const input_plugin_functions dummy_input = {
dummyinput_RomOpen,
dummyinput_SDL_KeyDown,
dummyinput_SDL_KeyUp,
dummyinput_RenderCallback
dummyinput_RenderCallback,
dummyinput_SendVRUWord,
dummyinput_SetMicState,
dummyinput_ReadVRUResults,
dummyinput_ClearVRUWords,
dummyinput_SetVRUWordMask
};

static const rsp_plugin_functions dummy_rsp = {
Expand Down