Commit Graph

188 Commits

Author SHA1 Message Date
masterofpuppets152001 bad1d9502c Added lua command client_xpos and client_ypos 2013-04-18 00:54:04 +00:00
adelikat e32eaeeb9a More code cleanup 2013-04-16 00:19:31 +00:00
adelikat 7199b64a95 More multiclient refactoring 2013-04-15 02:14:14 +00:00
adelikat 1c33b92bf1 NES - separate first/last scanline settings for NTSC vs PAL (default of 8,231 NTSC and 0,239 for PAL) 2013-03-25 01:59:34 +00:00
adelikat 496f645b48 Lua - add snes library getlayer_set_bg_1(), setlayer_set_bg_1(), etc to toggle/get all layer options 2013-03-25 00:49:50 +00:00
adelikat 77846acf01 Lua - joypad.set - implement false to force input off, and a string param to serve as inverse 2013-03-23 20:34:25 +00:00
adelikat cd03d2fe99 Slight tweak to movie frame property 2013-03-17 15:39:33 +00:00
adelikat 5df510fb4f Lua - add a null check that maybe completely fixes input.set(), also add a null check when attempting to resolve the lua path that was breaking Lua Console when auto-loading a lua session 2013-03-09 20:31:04 +00:00
adelikat 4cd34a4fda I fail today 2013-03-02 15:48:49 +00:00
adelikat 3f740a86b2 nevermind 2013-03-02 15:46:26 +00:00
adelikat cf75e3715e oops again 2013-03-02 15:45:47 +00:00
adelikat 9576428e36 oops 2013-03-02 15:42:32 +00:00
adelikat 7cccb9a0a8 Lua - "Fix" parameter order of gui.drawText() 2013-03-02 15:40:59 +00:00
adelikat 619a36fb4c Lua - implement gui.drawText() - updates at the same time as other draw functions and is in emulator space instead of client space 2013-03-02 15:19:14 +00:00
adelikat 54b83bcad6 Lua - implement client.pause_av() and client.unpause_av() 2013-02-26 00:36:13 +00:00
goyuken 726d497997 lua: gui.text() behaves more consistently with different window sizes 2012-12-22 01:00:12 +00:00
adelikat 64ced7533b Lua - implement client.getwindowsize 2012-12-21 23:50:29 +00:00
goyuken e8a54aaeed luaimplementation: input.getmouse(): button fields are now bools. position fields are now in emulated screen coordinates. no, it doesn't quite work right for some cases of window sizing... so don't do that! 2012-12-20 21:40:03 +00:00
zeromus a4b442abda unify coreinputcomm and coreoutputcomm. there is a slight chance your console will be messed up until i fix a teeny tiny something, since i didnt test them all, since with more recent cores i dunno what roms are working anyway. let me know if i broke anything. 2012-12-10 00:43:43 +00:00
goyuken e95efcb91b throttling UI is now set up to be done in one of three ways: sound, vsync, timer. in addition, there's an option to use vsync even when not throttling to it (but this doesn't really work too well...) 2012-11-12 17:57:11 +00:00
adelikat 5382a348dc Lua - fix savestate.loadslot() 2012-10-27 00:35:02 +00:00
adelikat a0111d1c08 Lua - implement client.screenshottoclipboard() and client.setscreenshotosd() 2012-10-27 00:19:43 +00:00
adelikat 4193ddfa5d Lua - implement client.screenshot() 2012-10-26 23:48:28 +00:00
goyuken 5661205bda event.onmemoryread(function f) : f is now passed the address in question. similarly for onmemorywrite 2012-10-14 15:19:31 +00:00
adelikat 6fedb67949 Fix the Write callback for the MemoryCallBackSystem and refactor the object more appropriately 2012-10-14 14:08:25 +00:00
pasky1382 918a067ab0 Added default colors (white) to other drawing functions. 2012-10-13 21:40:00 +00:00
adelikat 091125b181 another useless whitespace commit 2012-10-13 21:22:30 +00:00
adelikat 012d9007af Lua - change drawBox so that the line color is an optional parameter (white by default) 2012-10-13 20:57:02 +00:00
adelikat 557fb150c3 Lua - implement onmemoryread and onmemorywrite for the NES and PCE cores 2012-10-13 18:59:09 +00:00
goyuken 1793483aa9 make lua loadstate not trigger impossible callbacks when it runs, so it can actually work without killing the script. there are still other callbacks might not make sense? 2012-10-13 12:44:52 +00:00
adelikat 30098b0ab1 Remove emu.registerbefore and emu.registerafter in favor of event.framebefore() and event.frameafter() 2012-10-12 20:55:01 +00:00
adelikat b65064eb13 Lua - start an Event library and implement event.onloadstate(), event.onsavestate(), event.onframestart(), event.onframeend, event.oninputpoll(), All of these are aliases of other functions 2012-10-12 20:19:26 +00:00
adelikat ab761066e9 Lua - rehook up emu.registerbefore() and emu.registerafter(), but they have memory leaks, don't use them yet 2012-10-12 14:33:54 +00:00
adelikat be594adb35 Lua - disable emu.registerbefore() and emu.registerafter() for now 2012-10-07 00:30:43 +00:00
goyuken ea32688bf8 on_snoop(nil) will unregister the callback 2012-10-06 13:37:31 +00:00
goyuken b545d79fb6 lua: add emu.on_snoop() 2012-10-06 13:34:04 +00:00
adelikat a38e574695 Lua - implement mainmemory.writebyterange() 2012-09-29 02:26:51 +00:00
adelikat ed832036c1 Lua - Implement mainmemory.readbyterange() 2012-09-29 01:57:25 +00:00
adelikat a68b80ad36 Lua - implement functions: nes.getallowmorethaneightsprites() and nes.setallowmorethaneightsprites() 2012-09-28 17:32:01 +00:00
adelikat 608dbf6316 Lua - implement nes.addgamegenie() and nes.removegamegenie() 2012-09-23 20:28:51 +00:00
adelikat 2f8561a81d Lua - nes library - get/set methods for sprites and background display 2012-09-23 18:57:33 +00:00
goyuken ce482e24ad lua: gui.addmessage(string msg) 2012-09-23 14:43:33 +00:00
adelikat 2e19d31d33 lua - add nes.getclipleftandright(), nes.setclipleftandright(), also fix the previous nes library functions to work even if not in NESHawk 2012-09-23 04:26:07 +00:00
adelikat 8f3316e501 Lua - start NES library with nes.setscanlines(), nes.getbottomscanline(), and nes.gettopscanline() 2012-09-23 04:03:04 +00:00
zeromus 23f9b3e3dd fix that thing i just did 2012-09-20 00:42:50 +00:00
zeromus e8487b77d8 change lua drawing to use an offset specified by the emulator core, so that drawing in the nes core can have nes-relative coords instead of multiclient-display-relative coords 2012-09-20 00:22:24 +00:00
rolanmen1 f173aee3f4 LuaImplementation: forms.setproperty now works on int, double and bool properties. Added try catch to avoid crashes with these functions. 2012-09-17 19:55:11 +00:00
andres.delikat 0afd4f3c09 Lua - fix gui.drawLine/Pie/Ellipse/Polygon/Pixel/Bezier from commit 2908, the way those were done was causing exceptions after the 1st draw 2012-09-11 14:47:41 +00:00
zeromus b87af7d429 lua-try caching solidbrushes and pens for faster drawing 2012-09-07 03:34:16 +00:00
adelikat 8f408737da Movie refactoring - round 2 2012-09-03 19:42:53 +00:00