[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] XaAES + toolbar behavior



Am 12.12.2010, 01:23 Uhr, schrieb Peter Persson <pep.fishmoose@gmail.com>:


11 dec 2010 kl. 23.53 skrev Jean-François Lemaire:
Incidentally, the same goes for form_keybd() and form_button(). Better use form_wkeybd() and form_wbutton(), available in Magic and XaAES -- not sure
about MyAES.

Is there some sane way to check for the presence of these extra calls, other than figuring out which AES I'm running?

I use wind_get for XaAES (everything else is TOS-AES):

static int have_xaaes = 0; /*0:unknown, -1:no, 1:yes*/

int haveXAAES(void)
{
  int ret=0;
  if( have_xaaes == 0 ){
    if( wind_get( 0, 'XA', &ret) == 'XA' ){
      have_xaaes = 1;
      return 1;
    }
    have_xaaes = -1;
    return 0;
  }
  else if( have_xaaes == 1 )
    return 1;
  return 0;
}


--
Helmut Karlowski