Commit d9493a53 authored by hpi1's avatar hpi1

Added bd_mouse_select()

parent bdb8cb2b
......@@ -1943,6 +1943,15 @@ int bd_get_event(BLURAY *bd, BD_EVENT *event)
* user interaction
*/
void bd_mouse_select(BLURAY *bd, int64_t pts, uint16_t x, uint16_t y)
{
if (pts >= 0) {
bd_psr_write(bd->regs, PSR_TIME, (uint32_t)(((uint64_t)pts) >> 1));
}
_run_gc(bd, GC_CTRL_MOUSE_MOVE, (x << 16) | y);
}
void bd_user_input(BLURAY *bd, int64_t pts, uint32_t key)
{
if (pts >= 0) {
......
......@@ -585,4 +585,16 @@ void bd_register_overlay_proc(BLURAY *bd, void *handle, bd_overlay_proc_f func);
*/
void bd_user_input(BLURAY *bd, int64_t pts, uint32_t key);
/**
*
* Select menu button at location (x,y).
*
* @param bd BLURAY object
* @param pts current playback position (1/90000s) or -1
* @param x mouse pointer x-position
* @param y mouse pointer y-position
* @return none
*/
void bd_mouse_select(BLURAY *bd, int64_t pts, uint16_t x, uint16_t y);
#endif /* BLURAY_H_ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment