Small fix and alternative dualshock3 mapping
This commit is contained in:
parent
4e522c9e34
commit
ad01b129a5
6 changed files with 41 additions and 2 deletions
|
@ -18,6 +18,8 @@ addon = xbmcaddon.Addon()
|
|||
addon_base_path = xbmc.translatePath(addon.getAddonInfo('profile')).decode('utf-8')
|
||||
xbmcplugin.setContent(addon_handle, "files")
|
||||
|
||||
os.environ['LD_LIBRARY_PATH'] = "/usr/lib:/lib:" + addon.getAddonInfo("path") + "/lib"
|
||||
|
||||
def build_url(query):
|
||||
return base_url + "?" + urllib.urlencode(query)
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<addon id="script.moonlight" name="Moonlight" version="1.0.10" provider-name="dead">
|
||||
<addon id="script.moonlight" name="Moonlight" version="1.0.11" provider-name="dead">
|
||||
<requires>
|
||||
<import addon="xbmc.python" version="2.14.0"/>
|
||||
</requires>
|
||||
|
|
32
script.moonlight/bin/mappings/dualshock3alt.conf
Normal file
32
script.moonlight/bin/mappings/dualshock3alt.conf
Normal file
|
@ -0,0 +1,32 @@
|
|||
abs_x = 0
|
||||
abs_y = 1
|
||||
abs_z = 48
|
||||
abs_rx = 2
|
||||
abs_ry = 5
|
||||
abs_rz = 49
|
||||
abs_deadzone = 0
|
||||
abs_dpad_x = -1
|
||||
abs_dpad_y = -1
|
||||
reverse_x = false
|
||||
reverse_y = true
|
||||
reverse_rx = false
|
||||
reverse_ry = true
|
||||
reverse_dpad_x = false
|
||||
reverse_dpad_y = false
|
||||
btn_west = 303
|
||||
btn_south = 302
|
||||
btn_north = 300
|
||||
btn_east = 301
|
||||
btn_select = 288
|
||||
btn_start = 291
|
||||
btn_mode = 304
|
||||
btn_thumbl = 289
|
||||
btn_thumbr = 290
|
||||
btn_tl = 298
|
||||
btn_tr = 299
|
||||
btn_tl2 = 296
|
||||
btn_tr2 = 297
|
||||
btn_dpad_up = 292
|
||||
btn_dpad_down = 294
|
||||
btn_dpad_left = 295
|
||||
btn_dpad_right = 293
|
|
@ -1,3 +1,7 @@
|
|||
v1.0.11
|
||||
Fixed libmoonlight-common.so not being found.
|
||||
Added alternative dualshock3 mapping
|
||||
|
||||
v1.0.10
|
||||
Update moonlight-embedded to 2.2.0
|
||||
Added libcrypto and libssl so it now runs on OpenElec 5, 6, 7
|
||||
|
|
|
@ -33,6 +33,7 @@ class _HTTP_DATA(ctypes.Structure):
|
|||
|
||||
class LibGameStream:
|
||||
def __init__(self, libpath = ""):
|
||||
self.commonlib = ctypes.cdll.LoadLibrary(os.path.join(libpath, "libmoonlight-common.so.0"))
|
||||
self.gslib = ctypes.cdll.LoadLibrary(os.path.join(libpath, "libgamestream.so.0"))
|
||||
self.connected = False
|
||||
self.address = ""
|
||||
|
|
|
@ -13,6 +13,6 @@
|
|||
<setting id="MOON_LOCALAUDIO" type="bool" label="Play audio locally" default="false"/>
|
||||
<setting id="MOON_SURROUND" type="bool" label="Stream 5.1 surround sound (requires GFE 2.7)" default="false"/>
|
||||
<setting id="MOON_FORCEHW" type="bool" label="Force hardware acceleration" default="true"/>
|
||||
<setting id="MOON_MAPPING" type="select" label="Control Mapping" values="default|dualshock3|dualshock4|rumblepad2|xbox360" default="dualshock4" />
|
||||
<setting id="MOON_MAPPING" type="select" label="Control Mapping" values="default|dualshock3|dualshock3alt|dualshock4|rumblepad2|xbox360" default="dualshock4" />
|
||||
<setting id="MOON_AUDIO" type="text" label="Audio Device" default="sysdefault" />
|
||||
</settings>
|
Loading…
Reference in a new issue