Input Configuration
| Locate and understand the configuration file | Configuration |
In this document
Input Provider
A Input provider is something like Mouse, Tuio... It's a component that generate touch event. Depend on your hardware and your platform, you may have different Input Provider.
Available providers
| Name | Description | Platform | PyMT version |
|---|---|---|---|
| Mouse | Simulate touch event with mouse | All | All |
| Tuio | Open a TUIO Server to receive TUIO event | All | All |
| ... | And much more ! Stripped to prevent maintain different source of informations. |
For a list of all available providers, you can check Input Providers page.
Configuring Inputs
In configuration file, you have to edit the [input] section. The configuration line look like this :
devicename = providername,configuration
And configuration may look like this :
token=value,token=value
# or
value
# or
value
- providername is the name of provider in lowercase, like the one in the table on "Available providers" section.
- devicename is the "user name" of your input. You will be able to reuse it in the touch info.
For example, if you want to activate Mouse simulator :
[input]
my_mouse = mouse
my_mouse = mouse
If you want to activate a TUIO server on port 7894 (0.0.0.0 mean listen to all available network interface) + another TUIO server on port 1234:
[input]
table = tuio,0.0.0.0:7894
othertable = tuio,0.0.0.0:1234
table = tuio,0.0.0.0:7894
othertable = tuio,0.0.0.0:1234
By default, PyMT configure for you 2 inputs :
- the mouse simulator
- a tuio server on port 3333
