Changeset 2020


Ignore:
Timestamp:
Oct 17, 2012, 12:04:20 AM (11 years ago)
Author:
sam
Message:

neercs: F3 toggles fancy shit drawing.

Location:
trunk/tools/neercs/term
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/neercs/term/term.cpp

    r2007 r2020  
    3131    m_size(size),
    3232    m_title(0),
    33     m_time(0.f)
     33    m_time(0.f),
     34    m_debug(false)
    3435{
    3536#if defined HAVE_PTY_H || defined HAVE_UTIL_H || defined HAVE_LIBUTIL_H
     
    142143//            break;
    143144    }
     145
     146    /* Some fancy shit if we press F3 */
     147    if (Input::WasPressed(Key::F3))
     148        m_debug = !m_debug;
     149
     150    if (m_debug)
     151    {
     152        m_time += seconds;
     153        DrawFancyShit();
     154    }
    144155#else
    145156    /* Unsupported platform - draw some fancy shit instead */
  • trunk/tools/neercs/term/term.h

    r1859 r2020  
    127127    void DrawFancyShit();
    128128    float m_time;
     129    bool m_debug;
    129130};
    130131
Note: See TracChangeset for help on using the changeset viewer.