www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/16/06:45:23

From: D DOT J DOT Eleveld AT anest DOT azg DOT nl
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Grx22: help with kb & dclick
Date: Thu, 16 Jul 1998 10:30:38 GMT
Organization: Deja News - The Leader in Internet Discussion
Lines: 33
Message-ID: <6okkoe$3be$1@nnrp1.dejanews.com>
References: <09980616074106 DOT OUI42 DOT glloyd AT st DOT net DOT au>
NNTP-Posting-Host: 192.87.23.66
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <09980616074106 DOT OUI42 DOT glloyd AT st DOT net DOT au>,
  glloyd AT st DOT net DOT au wrote:
> I wonder if out there,there is someone that can help me out,I have
> ported the Gui of allegro to Grx22,but I came up with the problem of

This sounds great!

> simulating a keypress in one of the functions and also the routine for
> the double click,to get around this I used the keyboard code from

A quick look at the GRX include file tells me that there simply are no timer
functions in GRX, so you will be forced to make some of your own stuff for GRX
if you want to catch double clicks.

> Allegro and code from the Jlib library to access the interrupts,this
> works fine,however i am still having difficulty in implementing the
> double click routine,and I would rather keep all this totally Grx
> code,that is the kb & dclick routines,so what it comes down to is how do
> i simulate a keypress and how to implement the double click code.
> Thanking u all for any forthcoming help. regards Gary Lloyd.

BTW, I've put some work into making a C++ wrapper for Allegro and GRX so that
a user can use both libraries (decided at compile time).  Proper use of
inlines and templates should make the run time penalty low.  I've gotten it
mostly working for Allegro, but the GRX part goes slowly because I have
little experience with GRX.  If you want (or anybody else), I could send you
the source.  It's got a little demo in it...

Doug Eleveld


-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum

- Raw text -


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