Update of /cvsroot/pclasses/pclasses2/src/System
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15147/src/System
Modified Files:
Ps2Device.linux.cpp
Log Message:
changed peek()
Index: Ps2Device.linux.cpp
===================================================================
RCS file: /cvsroot/pclasses/pclasses2/src/System/Ps2Device.linux.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- Ps2Device.linux.cpp 14 Feb 2005 19:39:15 -0000 1.2
+++ Ps2Device.linux.cpp 14 Feb 2005 19:44:31 -0000 1.3
@@ -75,7 +75,7 @@
{
size_t ret = 0;
struct pollfd pfd[1];
- pfd[0].fd = Device::handle();
+ pfd[0].fd = this->nosHandle();
pfd[0].events = POLLIN;
if( poll(pfd, 1, 800) > 0 ) {
@@ -90,7 +90,7 @@
size_t Ps2Device::_peek(char* buffer, size_t count) throw(IO::IOError)
{
- return _handle->peek(buffer, count);
+ return 0;
}
size_t Ps2Device::_write(const char* buffer, size_t count) throw(IO::IOError)
|