begin
    prog = mythtv
    button = Up
    config = Up
end

begin
    prog = mythtv
    button = Down
    config = Down
end

begin
    prog = mythtv
    button = Left
    config = Left
end

begin
    prog = mythtv
    button = Right
    config = Right
end

begin
    prog = mythtv
    button = 1
    config = 1
end

begin
    prog = mythtv
    button = 2
    config = 2
end

begin
    prog = mythtv
    button = 3
    config = 3
end

begin
    prog = mythtv
    button = 4
    config = 4
end

begin
    prog = mythtv
    button = 5
    config = 5
end

begin
    prog = mythtv
    button = 6
    config = 6
end

begin
    prog = mythtv
    button = 7
    config = 7
end

begin
    prog = mythtv
    button = 8
    config = 8
end

begin
    prog = mythtv
    button = 9
    config = 9
end

begin
    prog = mythtv
    button = 0
    config = 0
end

begin
  prog = mythtv
  button = Menu
  config = M
end

begin
  prog = mythtv
  button = Repeat
  config = H
end

begin
  prog = mythtv
  button = Check
  config = /
end

begin
  prog = mythtv
  button = help
  config = T
end


begin
   prog = mythtv
# This is the Red key
# We'll use it for "Delete"
   button = Red
   config = D
end

begin
   prog = mythtv
# This is the Green key
# We'll use it for "Information"
   button = Green
   config = I
end

begin
   prog = mythtv
# This is the Green key
# We'll use it for "View details"
   button = Yellow
   config = U
end

begin
   prog = mythtv
# This is the Green key
# We'll use it for "Upcoming episodes"
   button = Blue
   config = O
end


# Note the "repeat =" strings in the volume and channel.
# This means that if you hold down the key, every nth instance will be
# passed.  This depends on your system, so you may want to increase or
# decrease this and see what happens.  repeat = 1 is probably too
# fast.

begin
  prog = mythtv
  button = Left
  repeat = 3
  config = F10
end

begin
  prog = mythtv
  button = Right
  repeat = 3
  config = F11
end

begin
    prog = mythtv
# Middle button on the diamond
    button = Ok
    config = P
end

begin
    prog = mythtv
    button = Mute
    config = |
end

begin
    prog = mythtv
    button = back
    config = Esc
end


begin
   prog = mythtv
   button = stop
   config = Esc
end


#MPlayer
begin
   prog = mplayer
   button = stop
   config = quit
end

begin
   prog = mplayer
   button = help
   config = osd
end

begin
    prog = mplayer
    button = Ok
    config = play
end



begin
    prog = mplayer
    button = Ok
    config = pause
end

begin
   prog = mplayer
   button = Right
   config = volume +1
   repeat = 1
end

begin
   prog = mplayer
   button = Left
   config = volume -1
   repeat = 1
end

begin
   prog = mplayer
   button = Mute
   config = mute
end
##XINE

 begin
 prog = xine
 button = Ok
 repeat = 3
 config = Play
 end

 begin
 prog = xine
 button = stop
 repeat = 3
 config = Stop
 end

 begin
 prog = xine
 button = Back
 config = Quit
 end

 begin
 prog = xine
 button = Ok
 repeat = 3
 config = Pause
 end

 begin
 prog = xine
 button = Up
 repeat = 4
 config = EventUp
 end

 begin
 prog = xine
 button = Down
 repeat = 4
 config = EventDown
 end

 begin
 prog = xine
 button = Left
 repeat = 4
 config = Volume-
 end

 begin
 prog = xine
 button = Right
 repeat = 4
 config = Volume+
 end

 begin
 prog = xine
 button = Ok
 repeat = 0
 config = EventSelect
 end

 begin
 prog = xine
 button = Menu
 repeat = 0
 config = Menu
 end

 #vol down
 begin
 prog = xine
 button = Yellow
 repeat = 1
 config = EventLeft
 end

 #vol up
 begin
 prog = xine
 button = Red
 repeat = 1
 config = EventRight
 end

 
 #ch up
 begin
 prog = xine
 button = Green
 repeat = 1
 config = SeekRelative+60
 end

 #ch down
 begin
 prog = xine
 button = Blue
 repeat = 1
 config = SeekRelative-60
 end

 
  #skip chapter backward
 begin
 prog = xine
 button = Repeat
 repeat = 1
 config = EventPrior
 end
