Changeset 19358 for trunk/Mars/mbase


Ignore:
Timestamp:
11/07/18 20:46:51 (6 years ago)
Author:
tbretz
Message:
Implemented key handling of space key as a single-step key.
Location:
trunk/Mars/mbase
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mbase/MStatusDisplay.cc

    r19328 r19358  
    774774    AddStatusBar();
    775775
     776    BindKey(this, gVirtualX->KeysymToKeycode(' '), 0);
     777
    776778    //
    777779    // set the smallest and biggest size of the Main frame
     
    35503552}
    35513553
     3554Bool_t MStatusDisplay::HandleKey(Event_t *event)
     3555{
     3556    if (event->fType==kGKeyPress &&
     3557        event->fCode==gVirtualX->KeysymToKeycode(' ') &&
     3558        fStatus==(Status_t)kLoopPause)
     3559        fStatus = (Status_t)kLoopStep;
     3560
     3561    return kTRUE;
     3562}
     3563
    35523564Bool_t MStatusDisplay::HandleEvent(Event_t *event)
    35533565{
  • trunk/Mars/mbase/MStatusDisplay.h

    r17146 r19358  
    308308     void EventInfo(Int_t event, Int_t px, Int_t py, TObject *selected);
    309309     Bool_t HandleEvent(Event_t *event);
     310     Bool_t HandleKey(Event_t *event);
    310311
    311312     // Public helper functions
Note: See TracChangeset for help on using the changeset viewer.