HelloFangaming / HelloMarioEngine

A feature packed and fully commented Super Mario engine for GameMaker: Studio 1.4.

Home Page:http://hellofangaming.github.io/HelloMarioEngine/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GamePad support not working on PSVita Console

LiEnby opened this issue · comments

commented

The up/down/left/right and D-PAD Buttons work no problem. i can choose between file A/B/C
however when i go to press gp_face1 (mapped to X button on console) it doesn't do anything infact none of them do :?

another thing is that it immediately crashes unless your using YYC

commented

Ah, okay i found the issue to be with obj_persistent

it seems the console does not like using

    //Make the x key do everything the shift key does
    keyboard_set_map(ord('X'),vk_shift)
    
    //Make the z key do everything the control key does
    keyboard_set_map(ord('Z'),vk_control)

and then trying to press those keys like this

    //X button
    if gamepad_button_check_pressed(0,gp_face3)
        keyboard_key_press(ord('Z'))
    else if gamepad_button_check_released(0,gp_face3)
        keyboard_key_release(ord('Z'))

    //A button
    if gamepad_button_check_pressed(0,gp_face1)
        keyboard_key_press(ord('X'))
    else if gamepad_button_check_released(0,gp_face1)
        keyboard_key_release(ord('X'))

this seems to break it,

why not make it press vk_start and vk_control directly instead of X/Z ? this fixes that issue for me

oh and for YYC, its just running out of memory. i guess thats what u get on a console with only 512mb of ram huh

Using those keys directly causes issues on Windows for some reason. If this is just Vita, then I'll leave it as is.