Yes those things are possible, sorry I haven't been looking at this old project for a long time.
The scan codes are given to the project in the form of a string in the main() function of the program. Use the "vk" format for scan codes (virtual key codes). mapInfo = "LTHUMB:LEFT:NORM:a LTHUMB:RIGHT:NORM:d LTHUMB:UP:NORM:w LTHUMB:DOWN:NORM:s X:NONE:NORM:r A:NONE:NORM:VK32 Y:NONE:NORM:VK164 B:NONE:NORM:VK160";