brandman211
22feb43b78
joypad_set works.
2012-03-19 19:10:30 +00:00
brandman211
78d8effcfc
Made joypad_get independent of mnemonics. Here's the Lua script I used to test:
...
while true do
joypad.set("Up", true)
local buttons = joypad.get()
local result = {}
for index, value in pairs(buttons) do
table.insert(result, index .. ": " .. tostring(value))
end
gui.text(0, 36, table.concat(result, "\n"))
emu.frameadvance()
end
For some bizarre reason, after a while, the ordering of the buttons goes from stable to chaotic, making it impossible to read the buttons pressed. adelikat says not to worry about this because order is meaningless in Lua. Still, this is very curious...
TODO: Set using a ClickyVirtualPadController and Global.StickyXORAdapter.SetSticky(Controller + " Up", false)...whatever that means.
2012-03-19 14:52:23 +00:00
brandman211
a4a8dec005
Lua glue for zeromus.
2012-03-19 03:39:56 +00:00
adelikat
c92f1b556c
Lua - implement movie.filename(), movie.getreadonly(), movie.setreadonly()
2012-03-18 19:52:28 +00:00
adelikat
e695263eba
Lua - implement movie.isloaded() and movie.length()
2012-03-18 19:33:38 +00:00
adelikat
951721bb39
remove joypad.set and add joypad.get, as set was not built and get was
2012-03-18 19:14:50 +00:00
adelikat
44daaa0841
Lua - Implement savestate.save
2012-03-18 18:24:24 +00:00
adelikat
dac438ec02
Lua Console - Better dialog for lua functions list, stop and start sound on calling list
2012-03-17 02:18:09 +00:00
Rolanmen1
21fbe4f16e
Unwanted Exception When Turning Off All Scripts Fixed
2012-03-13 21:36:20 +00:00
adelikat
22f0b358aa
Make lua files run again
2012-03-12 01:57:38 +00:00
taotao54321
41b1d3c82a
Lua: now setrenderplanes() works also with SMS.
2012-03-11 17:25:25 +00:00
taotao54321
575c44f470
Now setrenderplanes() works also for SuperGrafx.
2012-03-11 09:51:23 +00:00
taotao54321
f25ddb2fce
Lua: now setrenderplanes() takes variable arguments
2012-03-11 09:16:09 +00:00
taotao54321
30b0dc6780
PCE: added settings to show/hide BG/OBJ for TurboGrafx (not for SuperGrafx)
...
Now setrenderplanes() works for TurboGrafx (not for SuperGrafx)
2012-03-11 06:50:46 +00:00
taotao54321
beb0b5a74d
Lua: added setrenderplanes(). For now, it works only for NES.
2012-03-11 05:47:38 +00:00
taotao54321
3dffd0b9b6
cosmetics (added trailing commas to make it easy to add new lua functions)
2012-03-11 05:13:12 +00:00
adelikat
76f1faf122
Lua - add gui.alert() which draws messages in the alert font
2012-03-11 00:54:24 +00:00
adelikat
635ae613a4
Ram Watch - when drawing watches on screen, use alert font for frozen addresses
2012-03-11 00:50:06 +00:00
adelikat
8ae543bb14
Lua implementation - code cleanup
2012-03-10 16:14:19 +00:00
taotao54321
a69ec16c03
Lua: Implemented writebyte() and fixed readbyte()
2012-03-10 03:58:42 +00:00
taotao54321
66f034b96f
Modified gui.text(): convert arguments to int directly
2012-03-10 03:31:07 +00:00
taotao54321
5283b29d54
Lua: Implemented new memory access functions. It can specify datasize and endianness.
...
Lua: Modified print() to emit a newline.
Lua: Fixed console_clear() not to take any argument.
2012-03-10 03:07:05 +00:00
adelikat
add74942f7
Stop and start sound before showing the load named state dialog. Fixes reported 'sound jitter' when using the Loadstate As hotkey.
2012-03-08 12:37:40 +00:00
adelikat
98938de0c2
Lua - fix exception when attempting to close a lua script
2012-03-07 00:58:41 +00:00
adelikat
ff3738681f
Lua COnsole - ooops, don't write to output window in gui.text()!
2012-03-07 00:21:11 +00:00
andres.delikat
8e241067e6
Lua - hook up savestate library and implement saveslot() and loadslot() methods
2012-02-03 12:18:27 +00:00
kylethomson
ca1114311c
Kill the lua thread as part of closing.
2012-01-29 03:22:05 +00:00
andres.delikat
5492a9fd19
Lua - gui.text() finished
2012-01-28 23:26:10 +00:00
andres.delikat
064bdbb9a7
Lua - start gui.text() but currently outputs to console window instead of on screen
2012-01-28 22:44:48 +00:00
andres.delikat
c7cc0ee203
lua - implement memory.getcurrentmemorydomain(), memory.getmemorydomainlist(), memory.usememorydomain()
2012-01-28 22:30:04 +00:00
andres.delikat
2a86660466
Lua - MainMemory functions
2012-01-28 22:11:39 +00:00
andres.delikat
2e0ac111ab
Proper checking if lua is running when doing thread waiting/set
2012-01-28 22:00:51 +00:00
andres.delikat
0082876510
LuaConsole - protect WriteToOutputWindow() and ClearOutputWindow() in case lua console is closed when called. Close the lua object on LuaConsole close (fixes some crashes).
2012-01-28 21:51:01 +00:00
andres.delikat
41708a8579
Lua - move threading code into the frame loops, now emu.frameadvance works per frame not per emulator loop
2012-01-28 21:43:55 +00:00
kylethomson
33ca14a344
Getting closer. Now catches a .NET exception in user code.
2012-01-23 01:10:56 +00:00
kylethomson
16ec704e41
Added Frameadvance with threading. Can't test, because CueFromPath is broken.
2012-01-22 23:44:53 +00:00
andres.delikat
d4260e22b1
Lua Console - hook up recent lua menu items, and start lua session file loading
2012-01-22 23:03:43 +00:00
andres.delikat
defbe971c4
Lua - open/close rom, open tool dialogs, fix memory_readbyte to read from a selected memory domain instead of hardcoded main memory (with main memory as the default), small fix ups to lua console
2012-01-22 22:42:40 +00:00
andres.delikat
78cc4d5cae
Lua - started a client library for functions that control the multiclient. Added client.openramwatch() as a proof of concept.
2012-01-22 22:20:09 +00:00
andres.delikat
48c651cfc7
Lua Console - lua functions list menu item. Lua - console.clear, console.getluafunctionslist, emu.getsystemid
2012-01-22 03:14:31 +00:00
andres.delikat
47f68a611b
Lua - fix typo problem that caused exception throwing in last commit, implemented emu.pause, emu.unpause, emu.togglepause
2012-01-21 20:20:06 +00:00
andres.delikat
955cee21b6
Lua console - hook up lua file loading! Lua library - Added a console library with an implemented console.output(), registered all lua libraries, implemented movie.stop, movie.rerecords, movie.mode
2012-01-21 20:05:53 +00:00
andres.delikat
3569f3cd0a
Remove bmp images in favor of png, small implementations to Lua Console
2011-06-26 02:09:06 +00:00
kylethomson
122b35f6c3
Adding lua function lists.
2011-05-14 01:05:26 +00:00
andres.delikat
db98f67772
Disabled LuaWindow in favor of LuaConsole
2011-05-07 01:06:01 +00:00
zeromus
4e14d7a10f
example: change readbyte to memory.readbyte
2011-02-20 23:41:51 +00:00
kylethomson
7430a35806
More lua functions.
2011-02-20 20:14:55 +00:00
kylethomson
0bcfa70dd4
DarkKobold attacks!
...
Excellent move!
The Metal Slime's Hit points have been reduced by 10.
Thou hast done well in defeating the Metal Slime
2011-02-20 19:18:27 +00:00