| 2201 | if (prbuffer->isDVD() && prbuffer->DVD()->IsInMenu()) |
| 2202 | { |
| 2203 | for (unsigned int i = 0; i < actions.size(); i++) |
| 2204 | { |
| 2205 | QString action = actions[i]; |
| 2206 | |
| 2207 | int nb_buttons = prbuffer->DVD()->NumMenuButtons(); |
| 2208 | if (nb_buttons > 0) |
| 2209 | { |
| 2210 | handled = true; |
| 2211 | |
| 2212 | if (action == "UP" || action == "CHANNELUP") |
| 2213 | prbuffer->DVD()->MoveButtonUp(); |
| 2214 | else if (action == "DOWN" || action == "CHANNELDOWN") |
| 2215 | prbuffer->DVD()->MoveButtonDown(); |
| 2216 | else if (action == "LEFT" || action == "SEEKRWND") |
| 2217 | prbuffer->DVD()->MoveButtonLeft(); |
| 2218 | else if (action == "RIGHT" || action == "SEEKFFWD") |
| 2219 | prbuffer->DVD()->MoveButtonRight(); |
| 2220 | else if (action == "SELECT") |
| 2221 | nvp->ActivateDVDButton(); |
| 2222 | else |
| 2223 | handled = false; |
| 2224 | } |
| 2225 | } |
| 2226 | } |
| 2227 | |
2680 | | int nb_buttons = prbuffer->DVD()->NumMenuButtons(); |
2681 | | if (nb_buttons > 0) |
2682 | | { |
2683 | | if (action == "UP" || action == "CHANNELUP") |
2684 | | prbuffer->DVD()->MoveButtonUp(); |
2685 | | else if (action == "DOWN" || action == "CHANNELDOWN") |
2686 | | prbuffer->DVD()->MoveButtonDown(); |
2687 | | else if (action == "LEFT" || action == "SEEKRWND") |
2688 | | prbuffer->DVD()->MoveButtonLeft(); |
2689 | | else if (action == "RIGHT" || action == "SEEKFFWD") |
2690 | | prbuffer->DVD()->MoveButtonRight(); |
2691 | | else if (action == "SELECT") |
2692 | | nvp->ActivateDVDButton(); |
2693 | | } |
2694 | | } |
2695 | | else if (action == "DELETE") |
2696 | | { |