t2:mxyconverter

mxyconverter


mxyconverter — Load mouse xy conversion configuration

Description


bool mxyconverter(const uint8 config[]);

Configure the mouse xy converter according with config[] parameter. Once the mouse xy converter is configured, it remains active until the memory slot is unloaded or mxyconverter_reset() is called.

The function mxyconverter() is equivalent to a Mouse XY Converter created using the Input Translator interface on Gtuner IV.

Parameters


  • config[]: Constant array that defines an mouse xy conversion configuration. The mouse xy conversion configuration can be obtained from the Mouse XY Converter interface by clicking on the copy icon with the Alt key pressed.

Return Value


Returns true if the mouse xy conversion configuration was successfully loaded, or FALSE if the mouse xy conversion configuration failed to load.

mxyconverter() fails to load an new configuration if there is an Input Translator with Mouse XY Converter already loaded by the user.

Examples


Example #1 mxyconverter() example

#include <mouse.gph>
 
init {
    // Load Mouse XY Conversion configuration
    const uint8 mxyconfig[] = { 
        0xFF, 0x03, 0xFF, 0x01, 0x00, 0x00, 0x1E, 0x0E, 0x80, 0x0E, 0x80, 0x00, 
        0xCB, 0x00, 0x00, 0x11, 0x40, 0x19, 0x19, 0x1F, 0x5E, 0x24, 0x14, 0x28, 
        0xC7, 0x2D, 0x7D, 0x31, 0x68, 0x34, 0x8C, 0x37, 0xAE, 0x3A, 0xD1, 0x3D, 
        0xF5, 0x41, 0x19, 0x44, 0x3A, 0x46, 0x97, 0x49, 0xB8, 0x4C, 0x14, 0x4E, 
        0x6E, 0x50, 0xC7, 0x53, 0x23, 0x55, 0x7D
    };
    mxyconverter(mxyconfig);
}

See Also

t2/mxyconverter.txt · Last modified: 2018/11/13 10:34 by J2Kbr