tmp2
git-svn-id: svn://db.shs.com.ru/pip@12 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
7
main.cpp
7
main.cpp
@@ -84,7 +84,7 @@ private:
|
||||
EVENT_HANDLER(void, ftevent) {
|
||||
piCout << ft.stateString()
|
||||
<< "(" << PIString::readableSize(ft.bytesFileCur()) << "/" << PIString::readableSize(ft.bytesFileAll()) << ", "
|
||||
<< PIString::readableSize(ft.bytesTotalCur()) << "/" << PIString::readableSize(ft.bytesTotalAll()) << ")";
|
||||
<< PIString::readableSize(ft.bytesCur()) << "/" << PIString::readableSize(ft.bytesAll()) << ")";
|
||||
}
|
||||
|
||||
EVENT_HANDLER1(void, ftsend, PIByteArray &, data) {
|
||||
@@ -100,7 +100,6 @@ private:
|
||||
|
||||
#include "ccm_kbd.h"
|
||||
void key_event(PIKbdListener::KeyEvent e, void*) {
|
||||
return;
|
||||
PICodeInfo::EnumInfo * ei = PICodeInfo::enumsInfo->value("PIKbdListener::SpecialKey");
|
||||
if (!ei) return;
|
||||
piCout << PICoutManipulators::NewLine << "modifiers" << e.modifiers;
|
||||
@@ -154,11 +153,11 @@ int main (int argc, char * argv[]) {
|
||||
piCout << "wait for receiving";
|
||||
}*/
|
||||
Catcher catcher;
|
||||
PIScreen screen(false);
|
||||
PIScreen screen(false, key_event);
|
||||
CONNECTU(&screen, tileEvent, &catcher, event)
|
||||
CONNECTU(&screen, keyPressed, &catcher, eventKey)
|
||||
screen.enableExitCapture(PIKbdListener::F10);
|
||||
screen.start();
|
||||
//screen.start();
|
||||
float cx = 0, cy = 0, vx = 1., vy = 0.3, t = 0.;
|
||||
PITimeMeasurer tm;
|
||||
Color col = Red;
|
||||
|
||||
Reference in New Issue
Block a user