BangleJS1 vs EMSCRIPTEN (Emulator) #5684
Replies: 1 comment
-
Posted at 2022-12-19 by @gfwilliams I'm afraid since the app doesn't seem to be on the app loader (https://banglejs.com/apps/?q=mixedclock2) I can't really see or test anything to be able to help out.
You should be able to just press right in the middle of the screen to activate both? Posted at 2022-12-19 by dapgo th app is on apploader https://github.com/espruino/BangleApps/tree/master/apps/miclock2
Maybe the cursor for emulator should simulate a finger ;) Attachments: Posted at 2022-12-19 by user140377 Do you see any errors in the espruino console when starting mixed clock 2? I just reinstalled the clock on my Bangle 1 and it paints as expected. Posted at 2022-12-30 by dapgo no errors in console. What fW do U have ? Maybe it is related with the use of Certain widgets, but I tested before and after removing most of them Posted at 2022-12-30 by user140377 I'm on firmware 2v16, but was using various previous versions before. Does it also happen with only default apps + mixedclock2 installed? Posted at 2023-01-19 by dapgo
@gfwilliams Yes, in a real bangle.js touching on the middle area1+area2 is associated to the simulated area 3. Posted at 2023-01-20 by @gfwilliams
I'm not quite sure what you mean? To change the mouse cursor? If you can do that, PRs are welcome :) I just checked and it turns out that the 'pressing in the middle' isn't implemented. The code is at https://github.com/espruino/EspruinoWebIDE/blob/master/emu/emu_banglejs1.html#L76-L111 To do it nicely you'd have to forget about BTN4/BTN5 the way it's done there, then listen to mousedown/up/move events on I did try it with 3 divs (code attached) and this works for clicking, but then it stops the 'swipe' events from working - so if you feel like jumping in and making it work, that'd be great :) Attachments: Posted at 2023-01-24 by dapgo unfortunately i feel that it is a a too complicated task for me :| Anyway I suppose this middle button function is not that important for bangle.js2 users and bangle.sj1 users can test on the real device. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2022-12-19 by dapgo
I am not very experienced using the emulator, so maybe it is just a matter of lack of experience.
At the moment I am facing different behaviour between both espruino interpreters,
The "mixedclock2" app works fine on emulator but fails on a bangle.js1.
See the issue drawing graphs
The "toucher" launcher, can't open some apps "mixedclock2 or setting"
....on bangle.js1 can be open with BTN2 or middle area touch
....on Emulator BTN2 doesn't open the app (probably something fail without an error output), and the touch can't tested (see next point)
.....Curiously both apps work fine on emulator when they are executed from the storage but also same apps can be open properly using the default "launch" launcher.
I can't figure how to press in both areas "simultaneously" from the emulator screen.
i.e toucher launcher use this area to open apps
(I suppose the touch action can be emulated from the IDE commandline)
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions