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

Logic error in esUtil.h - Easy Fix #70

Open
SirGouki opened this issue Aug 9, 2022 · 0 comments
Open

Logic error in esUtil.h - Easy Fix #70

SirGouki opened this issue Aug 9, 2022 · 0 comments

Comments

@SirGouki
Copy link

SirGouki commented Aug 9, 2022

I was typing up esUtil.h on my raspberry pi, and I noticed the following

void ESUTIL_API esRegisterKeyFunc ( ESContext *esContext,
void ( ESCALLBACK *drawFunc ) ( ESContext *, unsigned char, int, int ) );

The function here incorrectly takes in void(ESCALLBACK *drawFunc)(ESContext *, unsigned char, int, int). This should be the following, instead:

void ESUTIL_API esRegisterKeyFunc ( ESContext *esContext, 
                                     void ( ESCALLBACK *keyFunc ) ( ESContext *, unsigned char, int, int ) );

Oddly enough, the documentation comment shows the correct keyFunc parameter:

//
/// \brief Register a keyboard input processing callback function
/// \param esContext Application context
/// \param keyFunc Key callback function for application processing of keyboard input
//

@SirGouki SirGouki changed the title Logic error in esUtil.h Logic error in esUtil.h - Easy Fix Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant