createSDL on Linux #7560
Replies: 1 comment
-
Posted at 2023-09-01 by @gfwilliams Hi - sorry for the delay. If you want to make it hang around you can just do But I'm afraid there's no input event handling - honestly the Linux build is there mainly for testing, so sometimes I use SDL to display the result of doing something on Graphics, but I don't do anything two-way. Normally I just use I guess if you wanted to actually develop Bangle.js apps you could build for the https://github.com/espruino/Espruino/blob/master/boards/BANGLEJS2_LINUX.py board - but that doesn't use SDL - adding it for IO would be a reasonable undertaking. Posted at 2023-09-01 by @gfwilliams ... having said that I believe someone did make an app that used the WASM-compiled Bangle.js emulator that the IDE uses, and made it into a Rust (I think?) CLI app. Posted at 2023-09-02 by user156311 Thanks for setInterval() hint. I have done some hacks, and input event handling does not look that hard. Note in createSDL documentation that corresponding input does not exist would be welcome; it is not obvious from documentation and it took me a while to figure out. If you have pointer to that CLI app, that would be nice. Quick search did not find anything. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-08-23 by user156311
Does anyone have hints for using espruino on Linux?
I can get it to create a window and draw into it
but then application exits, so text is only visible for millisecond or so. Does anyone have example of using createSDL? Ideally I'd like to handle input events, too, but Bangle.on() does not seem to be available on Linux.
Beta Was this translation helpful? Give feedback.
All reactions