how do i use interrupt 0x33?

This is a discussion on how do i use interrupt 0x33? within the C Programming forums, part of the General Programming Boards category; Hi, you might of seen my other message board named "Mouse Interrupts" and this post is some-what alike. anyways, id ...

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    11

    Question how do i use interrupt 0x33?

    Hi,

    you might of seen my other message board named "Mouse Interrupts" and this post is some-what alike.

    anyways, id like to know how to use the interrupt 0x33 to move the mouse in random directions, i would strongly appreciate all help given.

    P.S : The OS im trying to do this in is Win 3.1 and dos in Real Mode(not a VM)

    note: you can also email me with a reply at
    linuxdude132@yahoo.com

  2. #2
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,706
    Check this out:
    Attached Files Attached Files
    Code:
    #include <cmath>
    #include <complex>
    bool flip(bool value)
    {
           return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0)*(1 << (value + 2)))
        ).real() < 0;
    }

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Pointer within a Struct
    By Bladactania in forum C Programming
    Replies: 11
    Last Post: 04-03-2009, 10:20 PM
  2. hex math
    By kroiz in forum C Programming
    Replies: 25
    Last Post: 01-20-2009, 02:46 PM
  3. DOS, Serial, and Touch Screen
    By jon_nc17 in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 01-08-2003, 03:59 PM
  4. interrupt handler functions in Visual C++ 6.0
    By scromer in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 01-07-2002, 06:06 PM
  5. Sound card interrupt problems
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 12-05-2001, 03:38 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21