[fpc-pascal] Getting Shift key with PTCCRT

James Richters james.richters at productionautomation.net
Sun Sep 18 16:37:56 CEST 2022


I came up with a solution for this.  Since I am on windows, I found I can
just check GetAsyncKeyState between keypressed and readkey like this:

         If PTCCRT.KeyPressed then
            Begin
	   isShiftDown := GetAsyncKeyState(VK_Shift);
                 MyKey:=PTCCRT.ReadKey;
            End;

James




More information about the fpc-pascal mailing list