Comments (4)
yeah I know you would love it.
Curious as I am, I wanted to see, how you are preventing the messages to flow and was able to find live_debug_output but I did not find the place where it is actually used. Well... Not that important, just curiousity :-)
here
also I repaired the centering of the handcrafted virtual keyboard.. It had worked only in firefox..
the reason .. I used the brand new css flexbox style flex-basis: content
which is still unknown in chrome and safari 🙄... I just today saw hints in the new safari developer preview that they will support "content" in future... I solved it to work around with two other css styles for max compatibility
the keyboard must be improved though ... I mean look at dirks native vc64 virtual keyboard ... so lovely
from virtualc64web.
oh yes... in fact the javascript is already connected to the cores message queue
see here
function message_handler(cores_msg)
{
var msg = UTF8ToString(cores_msg);
if(msg == "MSG_READY_TO_RUN")
{
//start it async
setTimeout(function() { try{wasm_run();}catch(e){}},10);
}
else if(msg == "MSG_ROM_MISSING")
{
//try to load roms from local storage
setTimeout(function() {
FromBase64 = function (str) {
return atob(str).split('').map(function (c) { return c.charCodeAt(0); });
}
var loadStoredItem= function (item_name){
var stored_item = localStorage.getItem(item_name);
if(stored_item != null)
{
var restoredbytearray = Uint8Array.from(FromBase64(stored_item));
wasm_loadfile(item_name, restoredbytearray, restoredbytearray.byteLength);
return true;
}
else
{
return false;
}
}
try{
var all_fine = true;
if (!loadStoredItem('basic_rom.bin'))
all_fine=false;
if (!loadStoredItem('kernal_rom.bin'))
all_fine=false;
if (!loadStoredItem('char_rom.bin'))
all_fine=false;
if (!loadStoredItem('vc1541_rom.bin'))
all_fine=false;
if(all_fine == false)
$('#modal_roms').modal();
} catch(e){}
},0);
}
}
so they are already landing in javascript ... but are not handled yet ... we can consume them and do some flashing ... what about the drop zone ? We could flash the drop zones background-color or the border color ...
and we like you said just filter them out the log to reduce it
from virtualc64web.
Hi @sy2002
I think I fixed the problem by completely hiding and not feed text into the live debug output by default and by establishing a settings dialog where you can turn it on when there is need for it.
The value settings are stored to localStorage like the dark mode value... so it is persistent
I think your performance issue is gone with this change , do you think we can I close this ?
Or should we still let it open or rename it to "reactive UI on message bus events" ?
You wanted a drive LED to flash somewhere in the UI, do you ?
pushed it to gh-pages...
from virtualc64web.
@mithrendal Sounds like a perfect solution! Thank you :-) I closed it.
(Curious as I am, I wanted to see, how you are preventing the messages to flow and was able to find live_debug_output
but I did not find the place where it is actually used. Well... Not that important, just curiousity :-) )
from virtualc64web.
Related Issues (20)
- Running C64-Cursor on iPad/Safari HOT 5
- compiling errors HOT 3
- cannot start D64 when building with latest emsdk HOT 5
- stuck physical keyboard on certain key combinations HOT 2
- Set other ROMs as default? HOT 5
- Does not load basic programs properly HOT 13
- margin-bottom on virtual keyboard for modern iOS devices HOT 1
- Bruce Lee crashes (any version) after several levels HOT 27
- setting action buttons on top of nav bar HOT 1
- improve mapping of (short cut) keys HOT 2
- work on defining actions and keyboard mappings
- Touch controls in iPhone HOT 41
- How does one drag a link from csdb.dk into the drop zone? HOT 4
- Touch controls in iPhone Part2 HOT 12
- use HOT 1
- xbox wireless controllers axis sticks HOT 1
- Touch example crashes on touch devices HOT 3
- Unable to select c64 roms on iOS HOT 2
- reworked css based virtual keyboard HOT 3
- Datasette STOP and PLAY HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from virtualc64web.