Welcome, Guest. Please login or register.

Author Topic: Simulate key press, help need.  (Read 3420 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline balrogsoftTopic starter

  • Full Member
  • ***
  • Join Date: Jan 2006
  • Posts: 186
    • Show only replies by balrogsoft
    • http://www.amigaskoolnet
Re: Simulate key press, help need.
« Reply #29 from previous page: May 30, 2006, 08:52:48 AM »
A few questions more, as i understand the main problem to use keyboard interrupt is that joystick don't generate a interrupt, when i send an event to keyboard using input.device, it will call keyboard interrupt? And if we put something on the keyboard to have a key continously pressed? then the interrupt will be called, then you can overwrite the interrupt and read joystick, and put the key that we want to simulate. I don't know if it will work... I saw also a note on Amiga hardware reference saying that you can't use $BFEC01 address, that is the serial input connected to keyboard, it says that hardware is using continously.
Balrog Software · http://www.amigaskool.net
Mac Mini G4 1,5ghz · MorphOS 2.7 · Ati Radeon 9200 64Mb · 1 Gb RAM · 80 GB HD
Efika · MorphOS 2.7 · Ati Radeon 9250 128Mb · 120 Gb WD HD
Amiga 1200T · OS 3.9 · Voodoo3 · Blizzard 603e/240mhz 060/50mhz · 98 Mb RAM · 40 GB HD
Amiga 600 · OS 3.1 · ACA 630/25mhz 32 Mb RAM · 4Gb CF
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: Simulate key press, help need.
« Reply #30 on: May 30, 2006, 10:34:00 AM »
Quote
when i send an event to keyboard using input.device, it will call keyboard interrupt?

No. Keyboard interrupt only occurs when actual real physical keys are pressed (or keyboard wants to communicate with the rest of the system for some reason).

input.device IND_WRITEEVENT is purely software, it spoofs an input event that is picked up by all input handlers (including that of intuition.library).