MCPcopy Create free account
hub / github.com/NetHack/NetHack / Put

Method Put

outdated/win/Qt3/qt3_win.cpp:798–804  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

796bool NetHackQtKeyBuffer::Full() const { return (in+1)%maxkey==out; }
797
798void NetHackQtKeyBuffer::Put(int k, int a, int state)
799{
800 if ( Full() ) return; // Safety
801 key[in]=k;
802 ascii[in]=a;
803 in=(in+1)%maxkey;
804}
805
806void NetHackQtKeyBuffer::Put(char a)
807{

Callers 4

clickCursorMethod · 0.45
mousePressEventMethod · 0.45
doKeysMethod · 0.45
notifyMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected