Skip to content

Add joystick hat support and ammend opengl includes to identify arm g…#3

Open
noabody wants to merge 1 commit intonotaz:masterfrom
noabody:master
Open

Add joystick hat support and ammend opengl includes to identify arm g…#3
noabody wants to merge 1 commit intonotaz:masterfrom
noabody:master

Conversation

@noabody
Copy link
Copy Markdown

@noabody noabody commented Jul 29, 2018

…l.h as a structural change to support Linux x86_64 common platform.

This relates to notaz/picodrive#90 which is a pull request against picodrive master to expand the common platform to support opengl for Linux x86_64.

…l.h as a structural change to support Linux x86_64 common platform.
Copy link
Copy Markdown
Owner

@notaz notaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks ok to me, just a couple of things that may need adjustment.

#include <EGL/egl.h>
#include <GLES/gl.h>
#if defined(__arm__)
#include <GLES/gl.h>
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ARM doesn't automatically mean GLES, just use HAVE_GLES.


case SDL_JOYHATMOTION:
if (event->jhat.which != state->joy_id)
return -2;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't you need a check that event->jhat.hat is < 2, like in the SDL_JOYAXISMOTION case, or are there only 2 hats possible? It fear may overflow axis_keydown[] array.

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

Successfully merging this pull request may close these issues.

2 participants