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

Submitted by:  Rik <rik5>
Submitted on:  Thu 20 Jun 2013 09:48:52 PM UTC  
 
Category: Plotting with OpenGLSeverity: 2 - Minor
Priority: 5 - NormalItem Group: Incorrect Result
Status: Wont FixAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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>
Project Administrator

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 04 Aug 2013 02:16:14 AM UTCbpabbottOpen/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup