No that is not the problem. I have a keyboard attached, but the trainer does not find the game, because for the touch edition another EXE is used. The trainers are most likely bound to a special EXE or process name. Because the touch enabled exe is named differently and the process name is different the trainer can't find it. Just check the game directory and you will find CivilizationV.exe (likely the DX9 edition) CivilizationV_DX11.exe (as named) and CivilizationV_Tablet.exe (the touch enabled one).
Sure I can use the DX11 version on the Tablet as well, but playing not using the keyboard just gets harder then. As well as the scaling of the interface is different.
If you could just build me a trainer exe that recognizes CiviliZationV_Tablet.exe as well I can give it a try for you.
it's likely that if there is a separate .exe then there is likely a different .dll as well. we suggest if you want cheats to use the non-touch version.
best,
Cal