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

Test with Gokrazy #841

Closed
hajimehoshi opened this issue Apr 11, 2019 · 7 comments
Closed

Test with Gokrazy #841

hajimehoshi opened this issue Apr 11, 2019 · 7 comments
Labels

Comments

@hajimehoshi
Copy link
Owner

https://gokrazy.org/

I'm not sure how graphics driver should be implemented.

@hajimehoshi
Copy link
Owner Author

http://seenaburns.com/2018/04/04/writing-to-the-framebuffer/

/dev/fb0 is the way to go?

@db47h
Copy link

db47h commented May 8, 2019

IIRC, The Pi has OpenGL ES 2.0 and can be used without even having to run under X Windows. The GL context is setup using straight EGL . See https://stackoverflow.com/questions/16080639/create-opengl-context-in-linux-consoleraspbian. The VideoCore sdk mentioned is installed by default in raspbian.

Also it seems to be working with GLFW (don't know about console mode though): https://github.com/libretro/ludo

@hajimehoshi
Copy link
Owner Author

Thank you for the information!

@db47h
Copy link

db47h commented May 8, 2019

You're welcome ! After a bit of digging, looks like GLFW uses Xlib for input regardless of the context creation API. So supporting the Pi without running X11 will require an EGL wrapper + custom input handling 😢

@hajimehoshi
Copy link
Owner Author

For Pi, I thought we could use DispmanX (#760). I'm not sure this supports inputs though.

@db47h
Copy link

db47h commented May 17, 2019

The examples have custom keyboard handling code. Short version: change terminal attributes and read stdin.

But... There's always the good old SDL2 which works on Pi without X. Added bonus: you can test the SDL2 driver on desktop!

@beoran
Copy link
Contributor

beoran commented Jan 11, 2020

Input handling from /dev/input/* devices is easy enough, I do it for joysticks already.

@hajimehoshi hajimehoshi closed this as not planned Won't fix, can't repro, duplicate, stale Aug 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants