| 796 | bool NetHackQtKeyBuffer::Full() const { return (in+1)%maxkey==out; } |
| 797 | |
| 798 | void 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 | |
| 806 | void NetHackQtKeyBuffer::Put(char a) |
| 807 | { |
no outgoing calls
no test coverage detected