Scroll to navigation

S3DW_HANDLE_KEY(3) s3d Manual S3DW_HANDLE_KEY(3)

NAME

s3dw_handle_key - handle key input on widget

SYNOPSIS

#include <s3dw.h>

int s3dw_handle_key(const struct s3d_evt *event);

DESCRIPTION

This is somehow useful to call in your keyhandler functions if you want to have input-boxes work. ;)


// way 1:
s3d_set_callback(S3D_EVENT_KEY,s3dw_handle_key);
// way 2:
...
void key(struct s3d_evt *evt)
{
s3dw_handle_key(evt);
....
// your own keyhandler code
...
}
....
s3d_set_callback(S3D_EVENT_KEY,key);

AUTHOR

Simon Wunderlich

Author of s3d
s3d