- player->x = player->tx*TILEWH;\r
- player->y = player->ty*TILEWH;\r
- player->triggerx = player->tx;\r
- player->triggery = player->ty+1;\r
- player->q=1;\r
- player->d=2;\r
- player->hp=4;\r
- player->speed=4;\r
- player->persist_aniframe=0;\r
- player->spt=(TILEWH/(player->speed)); //speed per tile wwww\r
+ return inst.LastScan;\r
+}\r
+\r
+ScanCode IN_GetCurCode()\r
+{\r
+ return inst.CurCode;\r
+}\r
+\r
+void IN_KbdLED()\r
+{\r
+ byte far *lock_key;\r
+\r
+ // turn off num-lock via BIOS\r
+ lock_key = MK_FP(0x040, 0x017); // Pointing to the address of the bios shift state keys\r
+ *lock_key&=(~(16 | 32 | 64)); // toggle off the locks by changing the values of the 4th, 5th, and 6th bits of the address byte of 0040:0017\r
+ OldKeyVect(); // call BIOS keyhandler to change keyboard lights\r