Krypton nightly - no apple remote support as yet ?
#16
(2016-04-11, 23:21)Gigantur Wrote: Restarted ?
Make sure kodi is started manually
Make sure "start with remote is unticked"

If that fails then do an ls -lag of the runtime folder before and after and post that please

3 x Yes. Still no remote...

ls -lag /Applications/Kodi.app/Contents/Resources/Kodi/tools/darwin/runtime

Before:
total 240
drwxr-xr-x@ 5 admin 170 10 Abr 07:14 .
drwxr-xr-x@ 4 admin 136 10 Abr 07:22 ..
-rwxr-xr-x@ 1 admin 107492 10 Abr 07:14 XBMCHelper
-rw-r--r--@ 1 admin 373 4 Mar 15:26 org.xbmc.helper.plist
-rwxr-xr-x@ 1 admin 5506 4 Mar 15:26 preflight

After:
total 600
drwxr-xr-x@ 5 admin 170 11 Abr 16:56 .
drwxr-xr-x@ 4 admin 136 10 Abr 07:22 ..
-rwxr-xr-x@ 1 staff 294220 11 Abr 16:54 XBMCHelper
-rw-r--r--@ 1 admin 373 4 Mar 15:26 org.xbmc.helper.plist
-rwxr-xr-x@ 1 admin 5506 4 Mar 15:26 preflight


Thanks,
rap01
Reply
#17
@Gigantur - there are no keycodes needed for mapping the apple remote - its like a keyboard now and sends the keys "left, right, up, down, return/enter, playpause, stop, menu" you should be able by mapping them directly like "<menu>stop</menu>" or so.

See here for what is sent now (the red line show what i've removed, the green ones what i'Ve added):

https://github.com/Memphiz/xbmc/commit/0...b32911952a

Also here a oneliner for the terminal to install it:

Code:
killall -9 XBMCHelper && curl https://dl.dropboxusercontent.com/u/30371861/XBMCHelper -o /Applications/Kodi.app/Contents/Resources/Kodi/tools/darwin/runtime && chmod 755 /Applications/Kodi.app/Contents/Resources/Kodi/tools/darwin/runtime/XBMCHelper

Run that on the terminal and reboot afterwards.
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#18
@rap01 what did you set in settings->system->input ? Something other then "Apple Remote" might not work with this atm (in case you use the harmony setting...)
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#19
(2016-04-12, 07:35)Memphiz Wrote: @rap01 what did you set in settings->system->input ? Something other then "Apple Remote" might not work with this atm (in case you use the harmony setting...)


@Memphiz,

settings->system->input devices->peripherals->apple remote->standard
Reply
#20
(2016-04-12, 07:27)Memphiz Wrote: @Gigantur - there are no keycodes needed for mapping the apple remote - its like a keyboard now and sends the keys "left, right, up, down, return/enter, playpause, stop, menu" you should be able by mapping them directly like "<menu>stop</menu>" or so.

See here for what is sent now (the red line show what i've removed, the green ones what i'Ve added):

https://github.com/Memphiz/xbmc/commit/0...b32911952a

Also here a oneliner for the terminal to install it:

Thanks heaps. I will play with later tonight.

Presumably there is no easy way at present to set actions for long presses (of centre or menu) ?

EDIT

Here is my preliminary keymap for the apple remote (key ones I needed to get going) ..

Code:
<keymap>
    
    <Global>
        <keyboard>
            <menu>ParentDir</menu>
        </keyboard>
    </Global>
    
    <home>
        <keyboard>
            <menu>ActivateWindow(Favourites)</menu>
        </keyboard>
    </home>
    
    <FullscreenVideo>
        <keyboard>
            <menu>Stop</menu>
            <enter>PlayPause</enter>
            <up>VolumeUp</up>
            <down>VolumeDown</down>
        </keyboard>
    </FullscreenVideo>
    
    <MyVideoLibrary>
        <keyboard>
            <menu>ParentDir</menu>
        </keyboard>
    </MyVideoLibrary>
    
    <Pictures>
        <keyboard>
            <menu>ParentDir</menu>
        </keyboard>
    </Pictures>
    
</keymap>
Reply
#21
something like "< enter mod="longpress" >ContextMenu< / enter >" doesn't work i guess?
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#22
Thanks for pointing me in the right direction.

I found this which noted the need to duplicate the key mapping with regards to longpress for each window id which had a shortpress alread - in essence that the global section (for a longpress) was broken

I have not been able to get it to work so far - I will upload a debug log tomorrow ..

Will this special version of the helper make it into the nightlies soon ?
Reply
#23
Not decided yet
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#24
Here is the debug

the attempt to use longpress menu on a file-list item occurs twice from 20:09:35 - the longpress is not detected and menu is sent instead

Code:
20:09:35 T:140735131398144   DEBUG: OnKey: menu (0xf0d8) pressed, action is ParentDir
20:09:35 T:140735131398144   DEBUG: CGUIMediaWindow::GetDirectory (sources://video/)
20:09:35 T:140735131398144   DEBUG:   ParentPath = []
20:09:35 T:123145303990272   DEBUG: Thread BackgroundLoader start, auto delete: false
20:09:35 T:123145303990272   DEBUG: Thread BackgroundLoader 123145303990272 terminating
20:09:42 T:140735131398144   DEBUG: Keyboard: scancode: 0x35, sym: 0x001b, unicode: 0x001b, modifier: 0x0
20:09:42 T:140735131398144   DEBUG: OnKey: escape (0xf01b) pressed, action is PreviousMenu

The xml used is below (and it can be seen loading without error)

20:08:37 T:140735131398144 INFO: Loading special://masterprofile/keymaps/keyboard-krypton-appleremote.xml
20:08:37 T:140735131398144 INFO: Loading special://profile/keymaps/keyboard-krypton-appleremote.xml

Code:
<keymap>
    
    <Global>
        <keyboard>
            <menu>ParentDir</menu>
            <menu mod="longpress">ContextMenu</menu>
        </keyboard>
    </Global>
    
    <home>
        <keyboard>
            <menu>ActivateWindow(Favourites)</menu>
        </keyboard>
    </home>
    
    <FullscreenVideo>
        <keyboard>
            <menu>Stop</menu>
            <menu mod="longpress">ContextMenu</menu>
            <enter>PlayPause</enter>
            <up>VolumeUp</up>
            <down>VolumeDown</down>
        </keyboard>
    </FullscreenVideo>
    
    <MyVideoLibrary>
        <keyboard>
            <menu mod="longpress">ContextMenu</menu>
            <menu>ParentDir</menu>
        </keyboard>
    </MyVideoLibrary>
    
    <filemanager>
        <keyboard>
            <menu mod="longpress">ContextMenu</menu>
            <menu>ParentDir</menu>
        </keyboard>
    </filemanager>
    
    <filebrowser>
        <keyboard>
            <menu mod="longpress">ContextMenu</menu>
            <menu>ParentDir</menu>
        </keyboard>
    </filebrowser>
    
    <videoplaylist>
        <keyboard>
            <menu mod="longpress">ContextMenu</menu>
            <menu>ParentDir</menu>
        </keyboard>
    </videoplaylist>
    
    <Pictures>
        <keyboard>
            <menu>ParentDir</menu>
            <menu mod="longpress">ContextMenu</menu>
        </keyboard>
    </Pictures>
    
</keymap>
Reply
#25
menu button is special - can you try with one of the arrow keys please?
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#26
nevermind - those longpress thingies can't work with XBMCHelper (and never will). I try to get those old keymaps back working on keyboard basis instead of joystick like before. Will post a test build shortly.
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#27
http://mirrors.kodi.tv/test-builds/osx/x...x86_64.dmg <- please try this one and report back.

For everyone who had a custom keymap you need to alter it again. Use the one from /Applications/Kodi.app/Contents/Resources/Kodi/system/keymaps/keyboard.AppleRemote.xml (or keyboard.Harmony.xml) as a base.

The difference is that the "joystick" tags are now "keyboard" tags and the "button" tags are now "key" tags. For the Harmony mapping all key ids are increased by 100 (because of possible conflicts with the apple remote now that all use basically the same keyboard mapping space and are NOT seperated anymore. Only the xml files are seperate but they share one common key id range).

For all who have the feature of starting kodi via remote turned on you need to restart osx after installing that testbuild
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#28
It is great. Longpress works. Fantastic.

I did change menu in global otherwise I could not get out of the context menu.

<keymap>
<global>
<keyboard>
<!-- menu --> <key id="6">ParentDir</key>
</keyboard>
</global>
</keymap>
Reply
#29
so my keyboard.AppleRemote.xml had an error somewhere? (it should be 1:1 to what we had before in joystick.AppleRemote.xml...)
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#30
Not sure. Perhaps if it is 1:1 then it must be Krypton or Estuary - either way without using a keymap to override default from the keyboard.AppleRemote.xml I am unable to "get out of context menu"

keyboard.AppleRemote.xml has menu as "back"

Code:
<keymap>
  <global>
    <keyboard>
      <!-- plus       -->      <key id="1">Up</key>
      <!-- minus      -->      <key id="2">Down</key>
      <!-- left       -->      <key id="3">Left</key>
      <!-- right      -->      <key id="4">Right</key>
      <!-- center     -->      <key id="5">Select</key>
      <!-- menu       -->      <key id="6">Back</key>

whereas I needed to map menu to ParentDir using a keymap as below to get it working:

Code:
<keymap>
    <global>
        <keyboard>
            <!-- menu       -->      <key id="6">ParentDir</key>
        </keyboard>
    </global>
</keymap>

I guess I could also have done it using Contextmenu window ID instead of global ..
Reply

Logout Mark Read Team Forum Stats Members Help
Krypton nightly - no apple remote support as yet ?0