test_input: fix compilation for kbd_keysym_to_string()
Since we moved to a runtime backend system for the input subsystem, we cannot access the internal keysym_to_string() helpers anymore. Hence, use the recently introduced uterm-input forwarding helper. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
parent
dd3d67a6f4
commit
20e0e69253
@ -40,8 +40,6 @@
|
|||||||
#include "uterm.h"
|
#include "uterm.h"
|
||||||
#include "test_include.h"
|
#include "test_include.h"
|
||||||
|
|
||||||
extern void kbd_keysym_to_string(uint32_t keysym, char *str, size_t size);
|
|
||||||
|
|
||||||
static struct ev_eloop *eloop;
|
static struct ev_eloop *eloop;
|
||||||
static struct uterm_input *input;
|
static struct uterm_input *input;
|
||||||
|
|
||||||
@ -89,7 +87,7 @@ static void input_arrived(struct uterm_input *input,
|
|||||||
{
|
{
|
||||||
char s[32];
|
char s[32];
|
||||||
|
|
||||||
kbd_keysym_to_string(ev->keysym, s, sizeof(s));
|
uterm_input_keysym_to_string(input, ev->keysym, s, sizeof(s));
|
||||||
printf("sym %s ", s);
|
printf("sym %s ", s);
|
||||||
if (ev->unicode != UTERM_INPUT_INVALID) {
|
if (ev->unicode != UTERM_INPUT_INVALID) {
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user