[bedevtalk] Optical mouse is jerky in BeOS

Fredrik Modéen fredrik.moden at telia.com
Fri Jan 20 10:43:27 BRST 2006


Magnus Hellman skrev:

>Hey all,
>I've been meaning to post this on one or another Be list but never got around to it, so I'll post here to kick off the list ;-)
>
>I bought an optical mouse a couple of months ago.  It works fine in Window$ XP, but in BeOS the pointer movement is jerky and really difficult to position accurately.  Is there some solution to this, like some sort of undocumented setting in the Input Server?  Or something else?  Or should I go back to buying a new balled mouse every few months? (they're dirt cheap but it's a pain having to replace them so often -- yes know how to clean them out, but they still deteriorate eventually).
>
>Cheers!
>_______________________________________________
>bedevtalk mailing list
>bedevtalk at bug-br.org.br
>http://www.bug-br.org.br/mailman/listinfo/bedevtalk
>
>
>  
>
I have a USB Logitch MX500 and Have no problem in BeOS (or Zeta) What 
type of mouse is this?

By the way any one knows how read lines from a text file that uses not 
only english letters? I have problem with the BFile::Read() the swedish 
letters ÅÄÖ are not reqognised

I found this on one of the older bedevtalks list..but ÅÄÖ are not reqognised

//Function to get a line from a file
bool BeGenApp::getline(BFile *file, BString& string){
    // These are all static so we don't lose 'em between function calls
    BString temp;
    static char buffer[4096];
    static off_t positionInBuffer;
    static ssize_t amt_read;
    string = "";     // Clear out old string
    // Fill up the buffer with the first chunk of code
    if (positionInBuffer == 0)
        amt_read = file->Read(&buffer, sizeof(buffer));
    while(amt_read > 0){
        while(positionInBuffer < amt_read){
            // Return true if we hit a newline or the end of the file
            if (buffer[positionInBuffer] == '\n') {
                positionInBuffer++;
                temp = string;
                temp << "\n";
                printf(temp.String());
                return true;
            }
            string += buffer[positionInBuffer];
            positionInBuffer++;
        }

        // Once the buffer runs out, grab some more and start again
        amt_read = file->Read(&buffer, sizeof(buffer));
        positionInBuffer = 0;
    }   
    return false;
}

//ModeenF



More information about the bedevtalk mailing list