From: tparvine AT alpha DOT hut DOT fi (Tero Parvinen) Newsgroups: comp.os.msdos.djgpp Subject: Setting the mouse callback function Date: 30 Sep 96 10:28:02 GMT Organization: Helsinki University of Technology Lines: 12 Distribution: inet Message-ID: NNTP-Posting-Host: alpha.hut.fi To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp I downloaded the sample-interrupt-handlers-v2.zip package from www.delorie.com and I tried to use the functions in mouse.s. I can't get the m_setUserFunction function to work. I'm not sure about the syntax because the package is not exactly well documented. I suppose the first parameter is the address of the callback function and the second is the mask for the events. I suppose I don't have to use the dpmi-functions to make a callback wrapper because the mouse routines provide one if I interpreted the mouse.s file correctly. So what I would like to do is declare a pure C-function which would get called by the mouse handler. How should I declare the C-function and what should I pass as the first parameter of m_setUserFunction? If someone has managed to do this, any help would be appreciated. I would prefer an answer in e-mail if possible. (Tero DOT Parvinen AT hut DOT fi is a good address ;) )