input mouse and keyboard translator to GPC2 SCRIPT XBOX ONE

GPC2 script programming for Titan Two. Code examples, questions, requests.

Re: input mouse and keyboard translator to GPC2 SCRIPT XBOX

Postby BEAST07 » Mon Jan 27, 2020 11:59 am

Hi guys
i have tested input translator working fine but not working when i copy and paste in script
Code: Select all
 const uint8 mmap[] = { 0x05, 0x04, 0x04, 0x0E, 0x02, 0x0F, 0x03, 0x0D, 0x06, 0x05, 0x07, 0x03, 0x08, 0x08, 0x00, 0x15, 0x01, 0x16 };
 const uint8 kmap[] = { 0x52, 0x98, 0x51, 0x18, 0x50, 0x97, 0x4F, 0x17, 0x1B, 0x10, 0x19, 0x07, 0xE2, 0x0C, 0x06, 0x11, 0x52, 0x08 };
 const uint8 mxyc[] = { 0x07, 0x04, 0x73, 0x01, 0x00, 0x00, 0x00, 0x0C, 0x00, 0x0C, 0x00, 0x01, 0x01, 0x00, 0x05, 0x0A, 0x0F, 0x14, 0x19, 0x1E, 0x23, 0x28, 0x2D, 0x32, 0x37, 0x3C, 0x41, 0x46, 0x4B, 0x50, 0x55, 0x5A, 0x5F, 0x64, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x0C, 0x00, 0x0C, 0x00, 0x01, 0x00, 0x00, 0x05, 0x0A, 0x0F, 0x14, 0x19, 0x1E, 0x23, 0x28, 0x2D, 0x32, 0x37, 0x3C, 0x41, 0x46, 0x4B, 0x50, 0x55, 0x5A, 0x5F, 0x64 };

i guess i'm putting translator in wrong location in script
User avatar
BEAST07
Sergeant Major
Sergeant Major
 
Posts: 74
Joined: Tue Jan 07, 2020 9:19 am

Re: input mouse and keyboard translator to GPC2 SCRIPT XBOX

Postby J2Kbr » Mon Jan 27, 2020 12:08 pm

The input translator embedded in script should be coded like this:
Code: Select all
init {
    const uint8 kmap[] = {
        0x52, 0x98, 0x51, 0x18, 0x50, 0x97, 0x4F, 0x17, 0x1B, 0x10, 0x19, 0x07,
        0xE2, 0x0C, 0x06, 0x11, 0x52, 0x08
    }; keymapping(kmap);
 
    const uint8 mmap[] = {
        0x05, 0x04, 0x04, 0x0E, 0x02, 0x0F, 0x03, 0x0D, 0x06, 0x05, 0x07, 0x03,
        0x08, 0x08, 0x00, 0x15, 0x01, 0x16
    }; mousemapping(mmap);
 
    const uint8 mxyc[] = {
        0x07, 0x04, 0x73, 0x01, 0x00, 0x00, 0x00, 0x0C, 0x00, 0x0C, 0x00, 0x01,
        0x01, 0x00, 0x05, 0x0A, 0x0F, 0x14, 0x19, 0x1E, 0x23, 0x28, 0x2D, 0x32,
        0x37, 0x3C, 0x41, 0x46, 0x4B, 0x50, 0x55, 0x5A, 0x5F, 0x64, 0x01, 0x00,
        0x01, 0x00, 0x00, 0x00, 0x0C, 0x00, 0x0C, 0x00, 0x01, 0x00, 0x00, 0x05,
        0x0A, 0x0F, 0x14, 0x19, 0x1E, 0x23, 0x28, 0x2D, 0x32, 0x37, 0x3C, 0x41,
        0x46, 0x4B, 0x50, 0x55, 0x5A, 0x5F, 0x64
    }; mxyconverter(mxyc);
}
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Re: input mouse and keyboard translator to GPC2 SCRIPT XBOX

Postby BEAST07 » Mon Jan 27, 2020 12:17 pm

thanks again J2Kbr
User avatar
BEAST07
Sergeant Major
Sergeant Major
 
Posts: 74
Joined: Tue Jan 07, 2020 9:19 am

Re: input mouse and keyboard translator to GPC2 SCRIPT XBOX

Postby TheAngryRooster » Tue Sep 14, 2021 5:29 pm

@mad,

Thank you very much for replying to this post. I'm relatively new to the Titan 2 world and also recently switched to KBM on the Xbox One. My OTG Cable will arrive tomorrow and I'll give that a go. I'm currently using a Game Pad and so far when it's hooked directly into the Xbox One it seems to work great. I tried plugging it into the Titan 2 in the USB Ports, but it did not register. I'm assuming the OTG Cable will solve that issue. Thanks again for all you do.
User avatar
TheAngryRooster
Sergeant
Sergeant
 
Posts: 9
Joined: Tue Sep 14, 2021 1:08 am

Re: input mouse and keyboard translator to GPC2 SCRIPT XBOX

Postby teddy18 » Tue Sep 21, 2021 11:54 am

Thanks
User avatar
teddy18
Lieutenant
Lieutenant
 
Posts: 346
Joined: Sun Jul 19, 2015 4:18 pm

Previous

Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 77 guests