www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/08/06/01:57:34

Date: 5 Aug 93 22:09 -0700
From: Jason Pak <pak AT cs DOT ubc DOT ca>
To: <djgpp AT sun DOT soe DOT clarkson DOT edu>
Subject: keyboard and mouse controls

I want to get inputs both from the keyboard and the mouse.
I have tried to use the subroutines provided by the libgr
library. I call MouseGetEvent(M_BUTTON_DOWN|M_KEYPRESS, &event)
but the procedure doesn't read in the mouse buttons' inputs.
I am running it in a dos window. Do I have to exit Windows first?
Or do I need to initialize the GrSetMode(..) first in order 
make the progam work? I tried and it complained that _GrCanBcopyInBlit
is undefined in the setmode module. 
 
BTW, I have tried to run the test programs provided in the libgrx
source code. The test programs are compiled but when they execute,
I can see no graphics or windows pop up from the terminal. 

Any hints/suggestions/examples are greatly appreciated.

Jason.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019