logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

s3dw_handle_key - handle key input on widget

Author

SimonWunderlich
           Author of s3d

s3d                                                                                           S3DW_HANDLE_KEY(3)

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);

Name

       s3dw_handle_key - handle key input on widget

Synopsis

#include<s3dw.h>ints3dw_handle_key(conststructs3d_evt*event);

See Also