C64 Emulator Browser Plugin
Please don't use for new projects
Play on Full Screen
Select one snapshot/game from the Upload Area:
With the C64 Emulator Browser Plugin installer you're able to integrate the C64 Emulator into the browser. For this the browser plugin will be installed on your computer. This plugin works for the Windows(TM) system and is compatible at least with the Firefox(TM) and Chrome(TM) browsers. Restart your browser after the installation.
Here is a simple HTML example source to show the activation of the plugin inside a HTML file:
<object id="c64" data="my_snapshot.s64" type="application/x-c64-snapshot" width=100% height=100%></object>
The my_snapshot.s64 file is simply one of your saved snapshot file made by the C64 Emulator. Just press Alt+F3 inside the emulator and the saved snapshot file (snapshot.s64) is available in your "my document" folder.
Supported Mime Types:
Mime Type | File Extension | Description |
application/x-c64-snapshot | .s64 | C64 Snapshot File |
audio/x-sid | .sid | C64 Audio File |
application/x-c64-cartridge | .crt | C64 Cartridge File |
application/x-c64-program | .prg | C64 Program File |
application/x-c64-datadisk | .d64 | C64 Floppy Disk(data only/single side) |
application/x-c64-rawdisk | .g64 | C64 Floppy Disk(raw/single side) |
Object Reference
var myc64 = document.getElementById("c64");
Properties:
Name | Access | Description |
text | write | output text |
focusAllow | read/write | allow to take focus and key input (default:false) |
hasFocus | read/write | set focus (default:false) |
keepAspectRatio | read/write | keep aspect ratio (default:false) |
hideBorder | read/write | hide C64 border (default:false) |
pause | read/write | pause emulation (default:false) |
mute | read/write | mute sound (default:false) |
diskBoxCount | read | count of disks in the disk box (multiple disks only) |
diskBoxSelected | read/write | current selected disk in the disk box (multiple disks only) |
Methods:
Name | Description |
reset() | resets the emulation to the beginning. |
snapshot() | save a snapshot internally. The old snapshot will be overwritten. |
restoreSnapshot() | restores to the last snapshot or to the beginning. |
setJoystickDevice( device ) | sets the joystick device. Devices: "keys1", "keys2", "joy1", "joy2" (default:"keys1") |
setJoystickToggle( true/false ) | toggles the C64 joystick port (default:false) |
setJoystickEnable( true/false ) | enables/disables the joystick (default:enabled) |
Events:
Name | Description |
onInitialized = function() {} | This event is called from the emulator if initialization is finished. |
onLoadFinished = function() {} | The input data is loaded. |
onContextMenuConfigChanged = function() {} | The configuration has changed - done by the context menu. |
onMouseDown = function() {} | The left mouse button is pressed. |
onMouseUp = function() {} | The left mouse button is released. |
onMouseRDown = function() {} | The right mouse button is pressed. |
onMouseRUp = function() {} | The right mouse button is released. |
onMouseMove = function(x, y) {} | The mouse is moved inside the emulator window. 'x','y' position to the window. |
onKeyDown = function(key) {} | A key is pressed. The 'key' is the ascii character. |
onKeyUp = function(key) {} | A key is released. The 'key' is the ascii character. |
onKeyVDown = function(key) {} | A key is pressed. The 'key' is the virtual key code. |
onKeyVUp = function(key) {} | A key is released. The 'key' is the virtual key code. |