bugGNU Octave - Bugs: bug #39304, ginput for FLTK does not return...

 
 

bug #39304: ginput for FLTK does not return correct X,Y coordinate on keypress

Submitter:  Rik <rik5>
Submitted:  Thu 20 Jun 2013 09:48:52 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  2 - Minor
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Wont Fix Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 22 Jun 2013 12:50:02 PM UTC, comment #1: 

As closed bugs can still be googled. Can it be closed ?

D.

David Bateman <dbateman>
Group Member
Thu 20 Jun 2013 09:48:52 PM UTC, original submission:  

This report is just a note in case anyone runs into the same problem.  If you use ginput() and press a key instead of using the mouse to click on a point then the button field returned will be the ASCII key code but the X,Y coordinates will be those of the last mouse click.

Fixing this would be cumbersome as _fltk_ginput_.m relies on the axis property "CurrentPoint" but this is specifically only updated when a mouse button is pressed.  One could modify _init_fltk_.cc to update the CurrentPoint whenever a key is pressed, but this would not be correct Matlab behavior.  One could also modify _init_fltk_.cc to return a struct with the key event information as well as the X, Y coordinates of the event.  This would possibly change how the @keypressfcn is handled though.

So, I'm just observing that this issue exists and marking it as won't fix.

Rik <rik5>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bpabbott (Updated the item)
  • -email is unavailable- added by dbateman (Posted a comment)
  • -email is unavailable- added by rik5 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-08-04 bpabbott Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code