Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken Default Mapping, please fix! [Android/Bug] #39

Open
OilSubjectLoss7 opened this issue Oct 28, 2020 · 2 comments
Open

Broken Default Mapping, please fix! [Android/Bug] #39

OilSubjectLoss7 opened this issue Oct 28, 2020 · 2 comments

Comments

@OilSubjectLoss7
Copy link

This is the default mapping

input_driver = "android"
input_device = "SONY "PS Vita""

input_b_btn = "97"
input_y_btn = "96"
input_select_btn = "104"
input_start_btn = "105"
input_up_btn = "110"
input_down_btn = "106"
input_left_btn = "0"
input_right_btn = "107"
input_a_btn = "98"
input_x_btn = "99"
input_l_btn = "100"
input_r_btn = "101"
input_l_x_plus_axis = "+0"
input_l_x_minus_axis = "-0"
input_l_y_plus_axis = "+1"
input_l_y_minus_axis = "-1"

As you can see, many button has mismatched mapping and missing(no Right Anlalog input and no l2r2l3r4) or outright broken, it should be like this if you want a universal generic mapping:


input_driver = "android"
input_device = "Generic"
input_device_display_name = "Generic"

input_b_btn = "97"
input_y_btn = "100"
input_select_btn = "109"
input_start_btn = "108"
input_a_btn = "96"
input_x_btn = "99"
input_l_btn = "102"
input_r_btn = "103"
input_l2_btn = "104"
input_r2_btn = "105"
input_l3_btn = "106"
input_r3_btn = "107"
input_menu_toggle_btn = "98"

input_up_btn = "h0up"
input_down_btn = "h0down"
input_left_btn = "h0left"
input_right_btn = "h0right"

input_l_x_plus_axis = "+0"
input_l_x_minus_axis = "-0"
input_l_y_plus_axis = "+1"
input_l_y_minus_axis = "-1"
input_r_x_plus_axis = "+2"
input_r_x_minus_axis = "-2"
input_r_y_plus_axis = "+3"
input_r_y_minus_axis = "-3"

or if you want to follow the official SONY Mapping

input_driver = "android"
input_device = "Sony Computer Entertainment Wireless Controller"
input_device_display_name = "PlayStation 4 Controller"
input_vendor_id = "1356"
input_product_id = "1476"
input_b_btn = "96"
input_y_btn = "99"
input_select_btn = "109"
input_start_btn = "108"
input_up_btn = "h0up"
input_down_btn = "h0down"
input_left_btn = "h0left"
input_right_btn = "h0right"
input_a_btn = "97"
input_x_btn = "100"
input_l_btn = "102"
input_r_btn = "103"
input_l2_btn = "104"
input_r2_btn = "105"
input_l3_btn = "106"
input_r3_btn = "107"
input_l_x_plus_axis = "+0"
input_l_x_minus_axis = "-0"
input_l_y_plus_axis = "+1"
input_l_y_minus_axis = "-1"
input_r_x_plus_axis = "+2"
input_r_x_minus_axis = "-2"
input_r_y_plus_axis = "+3"
input_r_y_minus_axis = "-3"

Can you like change the default mapping into this two setup I listed

@xerpi
Copy link
Owner

xerpi commented Oct 30, 2020

The code is quite straightforward, so you can change the button mapping easily: https://github.com/xerpi/vitastick/blob/master/skprx/main.c#L110

@OilSubjectLoss7
Copy link
Author

OilSubjectLoss7 commented Oct 31, 2020

That's the thing, I don't know how to program.
Edit:
Is this how I suppose to remap it?
Screenshot_20201031-231438

My pc is out of commission at the moment so I can't really compile it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants