User File #1552231445421689

Upload All User Files

#1552231445421689 - inputreplayer-v0.3.0 for lsnes (config)

inputreplayer-v0.3-config.lua
System: Super Nintendo Entertainment System
1061 downloads
Uploaded 9/30/2012 9:16 PM by partyboy1a (see all 14)
config file for inputreplayer
--*******************************
-- inputreplayer-v0.3-config.lua
--*******************************
assert(inputreplayer == nil, "don't start this file after inputreplayer has been started")

--[[
lsnes_version

	required because keys have different names
	for wxwidgets and SDL.

	valid values: "wxwidgets", "SDL"
--]]
lsnes_version = nil
assert(lsnes_version ~= nil, "lsnes_version must be setup by hand!")

inputreplayer = {}
inputreplayer.config = {
	--[[
	playercount
		
		valid values: 1 to 8
		(nothing was tested for 3 or more players)
	--]]
	playercount = 2
}

inputreplayer_ui = {}
inputreplayer_ui.config = {
	--[[
	lgap
	
		configure how much space this script can take on the left
		side of the screen
		
		valid values: 0 to 8191
	--]]
	lgap = 192 --224, 
}

if lsnes_version == "SDL" then
	--[[
	keys
		configure which keys you want to use
		for navigating the menus.
		
		key names are platform dependant! You can look
		up the SDL keynames by using the command
		identify-key (press escape beforehand to be able
		to enter this command, press escape to close the
		command prompt afterwards.)
	--]]
	inputreplayer_ui.config.keys = {
		--[[
		menu
			
			Used to open the menu, go back one step
			and to hide the menu entirely.
			don't use escape for this purpose,
			it would open the command prompt
			at the same time.
		--]]
		menu = "kp_divide", 
		--[[
		item
		
			used to select an item from the menu
			while the menu is visible. If the menu
			is hidden, nothing will happen when you
			press this keys.
			note that you are allowed to use these
			keys for controller input too. But if
			you do so, you should hide the menus
			before playing.
		--]]
		item = {            
			[1] = "kp1",    
			[2] = "kp2",    
			[3] = "kp3",    
			[4] = "kp4",
			[5] = "kp5",
			[6] = "kp6",
			[7] = "kp7",
			[8] = "kp8",
			[9] = "kp9"
		}
	}
elseif lsnes_version == "wxwidgets" then
	--[[
	keys

		configure which keys you want to use
		for navigating the menus.

		key names are platform dependant! You can look
		up the wxwidgets keynames:
		configure -> configure hotkeys -> change secondary
		-> prompt key -> [press the key now!] -> OK
		Now you can see the right name for it to be
		configured as secondary button for Controller 1
		for button A. (You can clear this new button.)
		
	--]]
	inputreplayer_ui.config.keys = {
		--[[
			menu
			
				see above
		--]]
		menu = "numpad_divide",
		--[[
			item
				
				see above
		--]]
		item = {
			[1] = "numpad1",
			[2] = "numpad2",
			[3] = "numpad3",
			[4] = "numpad4",
			[5] = "numpad5",
			[6] = "numpad6",
			[7] = "numpad7",
			[8] = "numpad8",
			[9] = "numpad9"
		}
	}
else
	error("lsnes_version not set")
end