Rockbox

This is the bug/patch tracker for Rockbox. Click here for more information.

Quick links: Bugs · Patches · Rockbox frontpage

Tasklist

FS#7894 - Handle mouseclick on simulator background

Attached to Project: Rockbox
Opened by Jonas Häggqvist (rasher) - Friday, 05 October 2007, 11:39 GMT+2
Last edited by Jonas Häggqvist (rasher) - Wednesday, 26 November 2008, 18:50 GMT+2
Task Type Patches
Category Simulator
Status Closed
Assigned To No-one
Player Type All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Private No

Details

This patch adds handling of mouseclicks to the simulator, so you can click on the buttons on the background, and those button events are then generated. It's not possible to generate a long keypress.

I have only implemented it for the H120 sim since writing the code to detect where the mouse was clicked is rather tedious work - if anyone has an idea of how to do it better, do tell.
   sim_mouseclick_v1.patch (30.4 KiB)
 uisimulator/sdl/button.c |  997 ++++++++++++++++++++++++-----------------------
 uisimulator/sdl/uisdl.c  |   16 
 2 files changed, 542 insertions(+), 471 deletions(-)

This task depends upon

Closed by  Jonas Häggqvist (rasher)
Wednesday, 26 November 2008, 18:50 GMT+2
Reason for closing:  Rejected
Additional comments about closing:  This is probably not worth the effort.

Loading...