Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define TV or A/V remote controller's keys #5

Closed
garykac opened this issue Oct 21, 2015 · 2 comments
Closed

Define TV or A/V remote controller's keys #5

garykac opened this issue Oct 21, 2015 · 2 comments

Comments

@garykac
Copy link
Member

garykac commented Oct 21, 2015

From @garykac on October 6, 2015 22:35

Copied from W3C Bugzilla: https://www.w3.org/Bugs/Public/show_bug.cgi?id=21120

Masayuki Nakano 2013-02-26 07:37:21 UTC

I found some keys for TV or A/V remote controller's key which are not defined in D3E.

GTK Qt Android
GDK_Switch_VT_1
GDK_Switch_VT_2
GDK_Switch_VT_3
GDK_Switch_VT_4
GDK_Switch_VT_5
GDK_Switch_VT_6
GDK_Switch_VT_7
GDK_Switch_VT_8
GDK_Switch_VT_9
GDK_Switch_VT_10
GDK_Switch_VT_11
GDK_Switch_VT_12
GDK_CycleAngle
GDK_AudioCycleTrack Qt::Key_AudioCycleTrack
GDK_AudioRepeat Qt::Key_AudioRepeat
GDK_FrameBack
GDK_FrameForward
GDK_Time Qt::Key_Time
GDK_View Qt::Key_View
GDK_TopMenu Qt::Key_TopMenu
ContrastAdjust Qt::Key_ContrastAdjust
Qt::Key_BassBoost
Qt::Key_TrebleUp
Qt::Key_TrebleDown
Qt::Key_CD
Qt::Key_Video KEYCODE_DVR
KEYCODE_TV
KEYCODE_MEDIA_CLOSE
KEYCODE_TV_POWER
KEYCODE_TV_INPUT
KEYCODE_STB_POWER
KEYCODE_STB_INPUT
KEYCODE_AVR_POWER
KEYCODE_AVR_INPUT
KEYCODE_3D_MODE

Comment 1 Masayuki Nakano 2013-02-27 02:55:36 UTC

My suggestions are:

'Channel1' as Media
'Channel2' as Media
'Channel3' as Media
'Channel4' as Media
'Channel5' as Media
'Channel6' as Media
'Channel7' as Media
'Channel8' as Media
'Channel9' as Media
'Channel10' as Media
'Channel11' as Media
'Channel12' as Media
'SwitchAngle' as Media
'MediaRepeatTrack' as Media (I'm not sure the actual purpose of this key)
'MediaRepeat' as Media
'FrameBack' as Media
'FrameForward' as Media
'TimeSearch' as Media (I'm not sure the actual purpose of this key)
I have no idea for view key since I'm not sure the actual purpose of it.
'MediaTopMenu' as Media
'ContrastAdjust' as Media
'AudioBassBoost' as Media
'AudioTrebleUp' as Media
'AudioTrebleDown' as Media
'CD' as Media
'Video' as Media
'TV' as Media
'TrayClose' as Device
'TVPower' as Media or Device
'TVSelectInput' as Media or Device
'STBPower' as Media or Device
'STBSelectInput' as Media or Device
'AVReceiverPower' as Media or Device
'AVReceiverSelectInput' as Media or Device
'Toggle3DMode' as Media

Comment 2 Masayuki Nakano 2013-02-27 08:30:37 UTC

On Windows, we can also dispatch key events for:

APPCOMMAND_BASS_BOOST (same as Qt::Key_BassBoost) 'AudioBassBoost'
APPCOMMAND_MIC_ON_OFF_TOGGLE 'MicToggle'
APPCOMMAND_MICROPHONE_VOLUME_DOWN 'MicVolumeDown'
APPCOMMAND_MICROPHONE_VOLUME_MUTE 'MicVolumeMute'
APPCOMMAND_MICROPHONE_VOLUME_UP 'MicVolumeUp'
APPCOMMAND_TREBLE_DOWN (same as Qt::Key_TrebleDown) 'AudioTrebleDown'
APPCOMMAND_TREBLE_UP (same as Qt::Key_TrebleUp) 'AudioTrebleUp'

Comment 3 Masayuki Nakano 2015-07-01 00:13:10 UTC

Additionally, we need to discuss the rules how to define key values of vendor or country specific buttons on remote control.

For example, Japanese TV remote controller typically has "地デジ" ( terrestrial digital broadcasting), "BS" (broadcast satellite broadcasting) and "CS" (communication satellite broadcasting) buttons which are to select type of broadcasting. However, some vendors may have "地デジ", "BS/CS" buttons. The "BS/CS" button toggles BS and CS broadcasting.

Another example, Japanese high-end TVs may have "Time Shift" related buttons. "Time Shift" feature is that TV records whole TV programs into external hard drive(s) and erase old records when the drive(s) doesn't have enough space to record new programs.

Comment 4 Masayuki Nakano 2015-07-01 00:15:26 UTC

I mean that like "Launch*", some generic rules are necessary for specific feature buttons.

Comment 5 Masayuki Nakano 2015-07-06 07:38:46 UTC

Android defined some new keycode values:

KEYCODE_11
KEYCODE_12 // no _10, but 0 - 9 were defined as numeric keys in PC keyboard :-(
KEYCODE_LAST_CHANNEL
KEYCODE_MEDIA_TOP_MENU
KEYCODE_PAIRING // for BT, remote controller, gamepad
KEYCODE_TV_ANTENNA_CABLE
KEYCODE_TV_AUDIO_DESCRIPTION
KEYCODE_TV_AUDIO_DESCRIPTION_MIX_DOWN
KEYCODE_TV_AUDIO_DESCRIPTION_MIX_UP
KEYCODE_TV_CONTENTS_MENU
KEYCODE_TV_DATA_SERVICE
KEYCODE_TV_INPUT_COMPONENT_1
KEYCODE_TV_INPUT_COMPONENT_2
KEYCODE_TV_INPUT_COMPOSITE_1
KEYCODE_TV_INPUT_COMPOSITE_2
KEYCODE_TV_INPUT_HDMI_1
KEYCODE_TV_INPUT_HDMI_2
KEYCODE_TV_INPUT_HDMI_3
KEYCODE_TV_INPUT_HDMI_4
KEYCODE_TV_INPUT_VGA_1
KEYCODE_TV_MEDIA_CONTEXT_MENU
KEYCODE_TV_NETWORK
KEYCODE_TV_NUMBER_ENTRY
KEYCODE_TV_RADIO_SERVICE
KEYCODE_TV_SATELLITE
KEYCODE_TV_SATELLITE_BS
KEYCODE_TV_SATELLITE_CS
KEYCODE_TV_SATELLITE_SERVICE
KEYCODE_TV_TELETEXT
KEYCODE_TV_TERRESTRIAL_ANALOG
KEYCODE_TV_TERRESTRIAL_DIGITAL
KEYCODE_TV_TIMER_PROGRAMMING
KEYCODE_TV_ZOOM_MODE

Copied from original issue: w3c/uievents#10

@garykac
Copy link
Member Author

garykac commented Oct 27, 2015

Partially addressed in 930d00b

@garykac
Copy link
Member Author

garykac commented Nov 4, 2015

'Pairing' added for _PAIRING
'MediaLast' added for _LAST_CHANNEL
'MediaTopMenu' added for MEDIA_TOP_MENU

And a TV section has been added.

I believe that the Switch_VT_1 ... 12 correspond to the KEYCODE_11 and _12 that were added in Android (with '1' .. '9' and '0' (=10) filling out the other channels.

@garykac garykac closed this as completed in e568a7b Nov 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant