![]() |
![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
![]() ![]() |
You can use the Keyboard Mapping Files to change how the emulator interprets keys on your PC keyboard. Each key on your keyboard has a 'scan code' which is a means of identifying each key. The ST also has a 'scan code' for each key. WinSTon uses a built-in remapping table to convert from a PC
scan codes to the ST equivalent code. Most of these are exact matches but some are changed due to the differencies between the PC and ST keyboard. Foreign keyboards may have different scan codes as the PC keyboard differs from the default English keyboard that WinSTon has been set up with. This page describes the method of creating additional keyboard mapping files to suit your key layout. NOTE - As some keys combine more than one character it may not be possible to map the PC keyboard exactly to that of the ST. |
An example of the default mapping file can be found in the directory where you installed WinSTon(usually '\Program File\WinSTon'). The file is called 'keyboard.map'. You can load this into any text editor and modify the values to change the scan code WinSTon uses for each PC key pressed. To modify the file simply make a copy of the 'keyboard.map' file and load this into a text editor. Now, run WinSTon and go to the Keyboard dialog page. The keyboard mapping file can be selected by clicking on the Browse button. You will also notice that there is a 'Test Key' button on this page. By clicking on the 'Test Key' button you will see this dialog: |
![]() |
By pressing keys on the keyboard you can see the 'scan code' of that key and also which scan code is sent to the emulator. The keyboard mapping file lists each ST scan code followed by the assigned PC code so by changing the PC code(the second number on each line) you can modify how WinSTon sees the keyboard. Experiment with different values - remember you can always delete the file and start again. This idea of this feature is that people will create mapping files for different keyboards and then make them available for download on the Internet or even allow them to be added into future versions of WinSTon. |
This is a diagram of the standard ST keyboard to help you assign the different keys. |
![]() |
And this shows you the ST scan codes which are used for each key. |
![]() |