home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / dev / e / amigae / modulessrc / libraries / lowlevel.e < prev    next >
Text File  |  1995-07-05  |  4KB  |  162 lines

  1. OPT MODULE
  2. OPT EXPORT
  3.  
  4. OBJECT keyquery
  5.   keycode:INT  -> This is unsigned
  6.   pressed:INT  -> This is unsigned
  7. ENDOBJECT
  8.  
  9. CONST LLKF_LSHIFT=$10000,
  10.       LLKF_RSHIFT=$20000,
  11.       LLKF_CAPSLOCK=$40000,
  12.       LLKF_CONTROL=$80000,
  13.       LLKF_LALT=$100000,
  14.       LLKF_RALT=$200000,
  15.       LLKF_LAMIGA=$400000,
  16.       LLKF_RAMIGA=$800000,
  17.       LLKB_LSHIFT=16,
  18.       LLKB_RSHIFT=17,
  19.       LLKB_CAPSLOCK=18,
  20.       LLKB_CONTROL=19,
  21.       LLKB_LALT=20,
  22.       LLKB_RALT=21,
  23.       LLKB_LAMIGA=22,
  24.       LLKB_RAMIGA=23,
  25.       SJA_DUMMY=$80C00100,
  26.       SJA_TYPE=$80C00101,
  27.       SJA_REINITIALIZE=$80C00102,
  28.       SJA_TYPE_AUTOSENSE=0,
  29.       SJA_TYPE_GAMECTLR=1,
  30.       SJA_TYPE_MOUSE=2,
  31.       SJA_TYPE_JOYSTK=3,
  32.       JP_TYPE_NOTAVAIL=0,
  33.       JP_TYPE_GAMECTLR=$10000000,
  34.       JP_TYPE_MOUSE=$20000000,
  35.       JP_TYPE_JOYSTK=$30000000,
  36.       JP_TYPE_UNKNOWN=$40000000,
  37.       JP_TYPE_MASK=$F0000000,
  38.       JPF_BUTTON_BLUE=$800000,
  39.       JPF_BUTTON_RED=$400000,
  40.       JPF_BUTTON_YELLOW=$200000,
  41.       JPF_BUTTON_GREEN=$100000,
  42.       JPF_BUTTON_FORWARD=$80000,
  43.       JPF_BUTTON_REVERSE=$40000,
  44.       JPF_BUTTON_PLAY=$20000,
  45.       JPB_BUTTON_BLUE=23,
  46.       JPB_BUTTON_RED=22,
  47.       JPB_BUTTON_YELLOW=21,
  48.       JPB_BUTTON_GREEN=20,
  49.       JPB_BUTTON_FORWARD=19,
  50.       JPB_BUTTON_REVERSE=18,
  51.       JPB_BUTTON_PLAY=17,
  52.       JP_BUTTON_MASK=$FE0000,
  53.       JPF_JOY_UP=8,
  54.       JPF_JOY_DOWN=4,
  55.       JPF_JOY_LEFT=2,
  56.       JPF_JOY_RIGHT=1,
  57.       JPB_JOY_UP=3,
  58.       JPB_JOY_DOWN=2,
  59.       JPB_JOY_LEFT=1,
  60.       JPB_JOY_RIGHT=0,
  61.       JP_DIRECTION_MASK=15,
  62.       JP_MHORZ_MASK=$FF,
  63.       JP_MVERT_MASK=$FF00,
  64.       JP_MOUSE_MASK=$FFFF,
  65.       JPB_BTN1=23,
  66.       JPF_BTN1=$800000,
  67.       JPB_BTN2=22,
  68.       JPF_BTN2=$400000,
  69.       JPB_BTN3=21,
  70.       JPF_BTN3=$200000,
  71.       JPB_BTN4=20,
  72.       JPF_BTN4=$100000,
  73.       JPB_BTN5=19,
  74.       JPF_BTN5=$80000,
  75.       JPB_BTN6=18,
  76.       JPF_BTN6=$40000,
  77.       JPB_BTN7=17,
  78.       JPF_BTN7=$20000,
  79.       JPB_UP=3,
  80.       JPF_UP=8,
  81.       JPB_DOWN=2,
  82.       JPF_DOWN=4,
  83.       JPB_LEFT=1,
  84.       JPF_LEFT=2,
  85.       JPB_RIGHT=0,
  86.       JPF_RIGHT=1,
  87.       SCON_DUMMY=$80C00000,
  88.       SCON_DUMMY=$80C00000,
  89.       SCON_TAKEOVERSYS=$80C00000,
  90.       SCON_KILLREQ=$80C00001,
  91.       SCON_CDREBOOT=$80C00002,
  92.       SCON_STOPINPUT=$80C00003,
  93.       SCON_ADDCREATEKEYS=$80C00004,
  94.       SCON_REMCREATEKEYS=$80C00005,
  95.       CDREBOOT_ON=1,
  96.       CDREBOOT_OFF=0,
  97.       CDREBOOT_DEFAULT=2,
  98.       RAWKEY_PORT0_BUTTON_BLUE=$72,
  99.       RAWKEY_PORT0_BUTTON_RED=$78,
  100.       RAWKEY_PORT0_BUTTON_YELLOW=$77,
  101.       RAWKEY_PORT0_BUTTON_GREEN=$76,
  102.       RAWKEY_PORT0_BUTTON_FORWARD=$75,
  103.       RAWKEY_PORT0_BUTTON_REVERSE=$74,
  104.       RAWKEY_PORT0_BUTTON_PLAY=$73,
  105.       RAWKEY_PORT0_JOY_UP=$79,
  106.       RAWKEY_PORT0_JOY_DOWN=$7A,
  107.       RAWKEY_PORT0_JOY_LEFT=$7C,
  108.       RAWKEY_PORT0_JOY_RIGHT=$7B,
  109.       RAWKEY_PORT1_BUTTON_BLUE=$172,
  110.       RAWKEY_PORT1_BUTTON_RED=$178,
  111.       RAWKEY_PORT1_BUTTON_YELLOW=$177,
  112.       RAWKEY_PORT1_BUTTON_GREEN=$176,
  113.       RAWKEY_PORT1_BUTTON_FORWARD=$175,
  114.       RAWKEY_PORT1_BUTTON_REVERSE=$174,
  115.       RAWKEY_PORT1_BUTTON_PLAY=$173,
  116.       RAWKEY_PORT1_JOY_UP=$179,
  117.       RAWKEY_PORT1_JOY_DOWN=$17A,
  118.       RAWKEY_PORT1_JOY_LEFT=$17C,
  119.       RAWKEY_PORT1_JOY_RIGHT=$17B,
  120.       RAWKEY_PORT2_BUTTON_BLUE=$272,
  121.       RAWKEY_PORT2_BUTTON_RED=$278,
  122.       RAWKEY_PORT2_BUTTON_YELLOW=$277,
  123.       RAWKEY_PORT2_BUTTON_GREEN=$276,
  124.       RAWKEY_PORT2_BUTTON_FORWARD=$275,
  125.       RAWKEY_PORT2_BUTTON_REVERSE=$274,
  126.       RAWKEY_PORT2_BUTTON_PLAY=$273,
  127.       RAWKEY_PORT2_JOY_UP=$279,
  128.       RAWKEY_PORT2_JOY_DOWN=$27A,
  129.       RAWKEY_PORT2_JOY_LEFT=$27C,
  130.       RAWKEY_PORT2_JOY_RIGHT=$27B,
  131.       RAWKEY_PORT3_BUTTON_BLUE=$372,
  132.       RAWKEY_PORT3_BUTTON_RED=$378,
  133.       RAWKEY_PORT3_BUTTON_YELLOW=$377,
  134.       RAWKEY_PORT3_BUTTON_GREEN=$376,
  135.       RAWKEY_PORT3_BUTTON_FORWARD=$375,
  136.       RAWKEY_PORT3_BUTTON_REVERSE=$374,
  137.       RAWKEY_PORT3_BUTTON_PLAY=$373,
  138.       RAWKEY_PORT3_JOY_UP=$379,
  139.       RAWKEY_PORT3_JOY_DOWN=$37A,
  140.       RAWKEY_PORT3_JOY_LEFT=$37C,
  141.       RAWKEY_PORT3_JOY_RIGHT=$37B,
  142.       LANG_UNKNOWN=0,
  143.       LANG_AMERICAN=1,
  144.       LANG_ENGLISH=2,
  145.       LANG_GERMAN=3,
  146.       LANG_FRENCH=4,
  147.       LANG_SPANISH=5,
  148.       LANG_ITALIAN=6,
  149.       LANG_PORTUGUESE=7,
  150.       LANG_DANISH=8,
  151.       LANG_DUTCH=9,
  152.       LANG_NORWEGIAN=10,
  153.       LANG_FINNISH=11,
  154.       LANG_SWEDISH=12,
  155.       LANG_JAPANESE=13,
  156.       LANG_CHINESE=14,
  157.       LANG_ARABIC=15,
  158.       LANG_GREEK=16,
  159.       LANG_HEBREW=17,
  160.       LANG_KOREAN=18
  161.  
  162.