Site Tools
Sidebar
User's Manual
t2:import
#import
#import — Import GIT file
Description
#import "<filename>.git"
Import the Input Translator file named <filename>.git to the script source code.
The Input Translator sections are declared according the <filename>, a suffix is added according the GIT type, as the following:
Table 1 | |
Suffix | GIT Type |
---|---|
_cmap | Controller Remapper |
_kmap | Keyboard Mapping |
_mmap | Mouse Mapping |
_mxyc | Mouse XY Converter |
If <filename> contains non-alphanumeric characters, those are replaced with '_'. |
Examples
Example code for #import
#import "example-file.git" init { remapper(example_file_cmap); keymapping(example_file_kmap); mousemapping(example_file_mmap); mxyconverter(example_file_mxyc); }
See Also
t2/import.txt · Last modified: 2020/04/21 06:25 by J2Kbr