fork(1) download
  1. program x;
  2. type
  3. TShiftState = set of (ssShift, ssAlt, ssCtrl, ssLeft, ssRight, ssMiddle, ssDouble, ssTouch, ssPen, ssCommand, ssHorizontal);
  4. var
  5. state: SmallInt;
  6. begin
  7. for state := Ord(Low(TShiftState)) to Ord(High(TShiftState)) do
  8. begin
  9. case state of
  10. Ord(ssShift): WriteLn('Shift');
  11. Ord(ssAlt): WriteLn('Alt');
  12. Ord(ssCtrl): WriteLn('Ctrl');
  13. Ord(ssLeft): WriteLn('Left');
  14. Ord(ssRight): WriteLn('Right');
  15. Ord(ssMiddle): WriteLn('Middle');
  16. Ord(ssDouble): WriteLn('Double');
  17. Ord(ssTouch): WriteLn('Touch');
  18. Ord(ssPen): WriteLn('Pen');
  19. Ord(ssCommand): WriteLn('Command');
  20. Ord(ssHorizontal): WriteLn('Horizontal');
  21. end;
  22. end;
  23. end.
Success #stdin #stdout 0s 232KB
stdin
Standard input is empty
stdout
Shift
Alt
Ctrl
Left
Right
Middle
Double
Touch
Pen
Command
Horizontal