OpenELEC / OpenELEC.tv

OpenELEC - The living room PC for everyone
http://openelec.tv
1.6k stars 888 forks source link

PS3 Remote - map all buttons #197

Closed piotrasd closed 11 years ago

piotrasd commented 12 years ago

Hi I saw finly PS3 remote working ... :) and very good reconnecting, go sleep, and wake up - perfect for me !!!

But many buttons are not mapped and i saw there is no possibility change is easy way Im find on forum some alter solution for this good working.

http://openelec.tv/forum/104-bluetooth-remotes/24473-ps3-remote-controller-in-openelec--alternate-solutions (third solution)

so maybe is possibility add this ..

kobik commented 12 years ago

+1 for every addition or fix for PS3 remote :)

unaxboy commented 12 years ago

+1

relax123 commented 12 years ago

May I propose a workaround for this:

###     keymaps.py  #####################################
# -*- coding: utf-8 -*-
#   Copyright (C) 2008-2009 Team XBMC http://www.xbmc.org
#
#   This program is free software; you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
#   the Free Software Foundation; either version 2 of the License, or
#   (at your option) any later version.
#
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.
#
#   You should have received a copy of the GNU General Public License along
#   with this program; if not, write to the Free Software Foundation, Inc.,
#   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

# PS3 Remote and Controller Keymaps

keymap_remote = {
    "16": 'power'    ,#EJECT
    "64": 'language' ,#AUDIO
    "65": None       ,#ANGLE
    "63": 'subtitle' ,#SUBTITLE
    "0f": 'clear'    ,#CLEAR
    "28": None       ,#TIME

    "00": 'one'   ,#1
    "01": 'two'   ,#2
    "02": 'three' ,#3
    "03": 'four'  ,#4
    "04": 'five'  ,#5
    "05": 'six'   ,#6
    "06": 'seven' ,#7
    "07": 'eight' ,#8
    "08": 'nine'  ,#9
    "09": 'zero'  ,#0

    "81": 'mytv'       ,#RED
    "82": 'mymusic'    ,#GREEN
    "80": 'mypictures' ,#BLUE
    "83": 'myvideo'    ,#YELLOW

    "70": 'display'  ,#DISPLAY
    "1a": 'home'     ,#TOP MENU
    "40": 'menu'     ,#POP UP/MENU
    "0e": None       ,#RETURN

    "5c": 'guide'   ,#OPTIONS/TRIANGLE
    "5d": 'back'    ,#BACK/CIRCLE
    "5e": 'info'    ,#X
    "5f": 'title'   ,#VIEW/SQUARE

    "54": 'up'     ,#UP
    "55": 'right'  ,#RIGHT
    "56": 'down'   ,#DOWN
    "57": 'left'   ,#LEFT
    "0b": 'select' ,#ENTER

    "5a": 'volumeplus'  ,#L1
    "58": 'volumeminus' ,#L2
    "51": 'Mute'        ,#L3
    "5b": 'pageplus'    ,#R1
    "59": 'pageminus'   ,#R2
    "52": None          ,#R3

    "43": 'home'        ,#PLAYSTATION
    "50": None          ,#SELECT
    "53": None          ,#START

    "33": 'reverse'   ,#<-SCAN
    "34": 'forward'   ,#  SCAN->
    "30": 'skipminus' ,#PREV
    "31": 'skipplus'  ,#NEXT
    "60": None        ,#<-SLOW/STEP
    "61": None        ,#  SLOW/STEP->
    "32": 'play'      ,#PLAY
    "38": 'stop'      ,#STOP
    "39": 'pause'     ,#PAUSE
    }
skyblaster commented 11 years ago

Just put in a simple pull request over at xbmc to make the subtitle button work. Not sure about the keymap above, but if it's correct, might as well submit a fix to the proper repo. The OpenELEC addon is built from xbmc source.

https://github.com/xbmc/xbmc/pull/2055 https://github.com/OpenELEC/OpenELEC.tv/blob/master/packages/addons/driver/xbmc-ps3d/addon

jenkins101 commented 11 years ago

Hi,

This is a issue in XBMC, Please add ticket on http://trac.xbmc.org instead.