Edit Box responds to Joystick
Daniel McKinnon

I'm having an issue wherein the edit proc responds to joystick input.

I don't want that. Infact I don't want any GUI item responding to the joystick at all.

Anyone know how I could disable GUI Joystick response?

Matt Smith

you need access to the DIALOG_PLAYER struct, so afaics you'll have to use init_, update_ and shutdown_dialog().

e.g.

int do_dialog_nj(DIALOG *dialog, int focus_obj) 
{
 
      DIALOG_PLAYER *player = init_dialog(dialog, focus_obj);

      player->joy_on = 0;

      while (update_dialog(player))
         ;

      return shutdown_dialog(player);
}

Thread #587271. Printed from Allegro.cc