Thread: mouse header for C

  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    4

    Question mouse header for C

    platform: linux 2.6.x
    distro: debian
    language: C

    I'm trying to send a signal to my usb mouse. I don't want it to move, return coordinates to the screen, nothing of the sort. Let's say...I just want to send it a "wake up" signal so my screensaver doesn't kick in. (I know I know...there are many other ways to do it and tools to perform the job....perhaps by even tweaking the proper module in the kernel itself.)

    But just out of curiosity...Is there a "mouse header" somewhere if I wanted to achieve above programmatically?

  2. #2
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Quote Originally Posted by el_chupacabra View Post
    platform: linux 2.6.x
    I just want to send it a "wake up" signal so my screensaver doesn't kick in. (I know I know...there are many other ways to do it and tools to perform the job....perhaps by even tweaking the proper module in the kernel itself.)

    But just out of curiosity...Is there a "mouse header" somewhere if I wanted to achieve above programmatically?
    Hardware is the realm of "kernel space", which I guarantee you do not want to mess with that just to wake your mouse up so that you can prevent the screensaver from happening!

    Why don't you just change the screensaver settings -- like to "off", since there is they serve no purpose if you are using an LCD monitor. I haven't used a screensaver in years...
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Checking array for string
    By Ayreon in forum C Programming
    Replies: 87
    Last Post: 03-09-2009, 03:25 PM
  2. Problem in mouse position
    By Arangol in forum Game Programming
    Replies: 6
    Last Post: 08-08-2006, 07:07 AM
  3. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM
  4. Resource ICONs
    By gbaker in forum Windows Programming
    Replies: 4
    Last Post: 12-15-2003, 07:18 AM