Podesavanje Gamepad-a u Kodi

Učlanjen(a)
12.03.2013
Poruka
47
dobro si shvatio sad cu da probam :)

<axis limit="-1" id="1">Up</axis>
<axis limit="+1" id="1">Down</axis>
<axis limit="+1" id="1">Right</axis>
<axis limit="-1" id="1">Left</axis>
levo desno je ovako sad ispravno
ali ako koristim npr id1 ili vec koji onda ga ne smem upotrebljavati za ostale tastere?
 
Poslednja izmena od urednika:
MODERATOR
Učlanjen(a)
17.11.2012
Poruka
3.070
Ne, jer svako dugme ima svoj id. Sudeci na osnovu onog primera za sony ovo su id za ose 1, 4, 13, 14:
Kod:
<axis limit="+1" id="4">VolumeDown</axis>
<axis limit="-1" id="4">VolumeUp</axis>
<axis limit="+1" id="1">AnalogSeekForward</axis>
<axis limit="-1" id="1">AnalogSeekBack</axis>
<axis limit="+1" id="13">ScrollUp</axis>
<axis limit="+1" id="14">ScrollDown</axis>
recimo ako je id1 za levo-desno, onda je drugi broj za gore-dole, mozda neki od ovih 4, 13, 14...
 
Učlanjen(a)
12.03.2013
Poruka
47
4 nije
isprobavam redom :D
sporo se dize kodi nanaovo

nije ni 13 ni 14
a sto tako brzo skroluje jel moze da se podesi vrednost da sporije skroluje
 
Poslednja izmena od urednika:
MODERATOR
Učlanjen(a)
17.11.2012
Poruka
3.070
Ovde ima nekih gotovih primera za gamepad-e:
Kod:
https://github.com/xbmc/xbmc/tree/master/system/keymaps
https://github.com/xbmc/xbmc/blob/master/system/keymaps/joystick.Logitech.RumblePad.2.xml
 
Učlanjen(a)
12.03.2013
Poruka
47
<axis limit="-1" id="2">ScrollUp</axis>
<axis limit="+1" id="2">ScrollDown</axis>
iz nekog razloga mi ovo radi ok gore dole mada isto brzo
ali nece onda levo desno sa onim
(imaju skoro svi ti u mom kodiju probao sam da kombinujem svasta)
 
MODERATOR
Učlanjen(a)
17.11.2012
Poruka
3.070
Kod:
<axis limit="-1" id="2">Up</axis>
<axis limit="+1" id="2">Down</axis>
<axis limit="+1" id="1">Right</axis>
<axis limit="-1" id="1">Left</axis>
Moralo bi ovako onda ici...
 
Učlanjen(a)
12.03.2013
Poruka
47
valja tako :D
jedino ono pitanje da li moze sporije
leti skrol nemoguce je kontrolisati
 
Učlanjen(a)
12.03.2013
Poruka
47
evo sam ga namestio koliko toliko
ako nekom bude trebalo postupak otprilike system>settings>system debugg loging i on pokaze gde je log
tamo pronadjes puno ime gamepada
ovo resto sam iznabadao menjao sta radi sta ne radi dakle:

Logitech(R) Precision(TM) Gamepad.xml

<!-- This file contains the mapping of keys (gamepad, remote, and keyboard) to actions within XBMC -->
<!-- The <global> section is a fall through - they will only be used if the button is not -->
<!-- used in the current window's section. Note that there is only handling -->
<!-- for a single action per button at this stage. -->
<!-- For joystick/gamepad configuration under linux/win32, see below as it differs from xbox -->
<!-- gamepads. -->

<!-- The format is: -->
<!-- <device> -->
<!-- <button>action</button> -->
<!-- </device> -->

<!-- To map keys from other remotes using the RCA protocol, you may add <universalremote> blocks -->
<!-- In this case, the tags used are <obc#> where # is the original button code (OBC) of the key -->
<!-- You set it up by adding a <universalremote> block to the window or <global> section: -->
<!-- <universalremote> -->
<!-- <obc45>Stop</obc45> -->
<!-- </universalremote> -->

<!-- Note that the action can be a built-in function. -->
<!-- eg <B>XBMC.ActivateWindow(MyMusic)</B> -->
<!-- would automatically go to My Music on the press of the B button. -->

<!-- Joysticks / Gamepads: -->
<!-- See the sample PS3 controller configuration below for the format. -->
<!-- -->
<!-- Joystick Name: -->
<!-- Do 'cat /proc/bus/input/devices' or see your xbmc log file to find the names of -->
<!-- detected joysticks. The name used in the configuration should match the detected name. -->
<!-- -->
<!-- Button Ids: -->
<!-- 'id' is the button ID used by SDL. Joystick button ids of connected joysticks appear -->
<!-- in xbmc.log when they are pressed. Use your log to map custom buttons to actions. -->
<!-- -->
<!-- Axis Ids / Analog Controls -->
<!-- Coming soon. -->
<keymap>
<global>
<joystick name="Logitech(R) Precision(TM) Gamepad">
<altname>PS3 Controller</altname>
<altname>Sony Computer Entertainment Wireless Controller</altname>
<button id="1">Select</button>
<button id="3">Close</button>
<button id="0">Left</button>
<button id="2">Stop</button>
<button id="4">Right</button>
<button id="5">PageUp</button>
<button id="9">OSD</button>
<button id="6">Mute</button>
<button id="7">VolumeDown</button>
<button id="8">VolumeUp</button>
<!-- Hat -->
<hat id="1" position="left">Left</hat>
<hat id="1" position="right">Right</hat>
<hat id="1" position="up">Up</hat>
<hat id="1" position="down">Down</hat>
</joystick>
</global>
</keymap>



hvala na pomoci ;)
 
Učlanjen(a)
12.03.2013
Poruka
47
dok sam restartovao komp ovo vec nije htelo da radi
izgleda ima neki problem taj logitech
kako god konfigurisao sam ga drugacije i sad mi je sasvim solidan.
Upravljanje sam stavio na tastere a na navigaciju sam stavio vol i premotavanje. Uglavnom radi sve ovo ovako :

<button id="1">Left</button>
<button id="3">Right</button>
<button id="2">Down</button>
<button id="4">Up</button>
<button id="5">XBMC.ActivateWindow(Teletext)</button>
<button id="10">Back</button>
<button id="6">XBMC.ActivateWindow(ShutdownMenu)</button>
<button id="7">OSD</button>
<button id="8">Play</button>
<button id="9">Select</button>
<!-- Right Analog Up and Down -->
<axis limit="+1" id="1">FastForward</axis>
<axis limit="-1" id="1">Rewind</axis>
<axis limit="-1" id="2">VolumeUp</axis>
<axis limit="+1" id="2">VolumeDown</axis>

od mene dosta pre 3 dana nisam znao da postoji nesto sto se zove keylogger :D
 
Natrag
Top