christianhaitian / arkos

Another rockchip Operating System
MIT License
1.58k stars 87 forks source link

bug - ArkOS 09292024 for PowKitty RGB10x - Drastic hotkey Issue #1229

Open dremond71 opened 2 days ago

dremond71 commented 2 days ago

Describe the Issue (If applicable)

On Powkitty RGB10x ,

image

which has 1 analog stick.

The hotkey to bring up the Drastic emulator menu is set to the same keycode as the analog stick 'press down' keycode. (stylus click keycode). So this means, in a game which depends on a stylus click, when the user does this, it brings up the Drastic emulator menu....instead of clicking down on the on the graphical item below the stylus.

How can the issue be reproduced? (If applicable)

Open a nintendo ds game, Super Princess Peach (for example), move the stylus over one of the 4 heart icons, and press down on the analog joystick. It will open the Drastic emulator menu.

What device are you using?

Powkitty RGB10x

What version of ArkOS are you on?

Arkos 09292024

Anything else you'd like to include that may help to review this issue or feature request?

I changed my Powkitty RGB10x's

/opt/drastic/config.cfg to this:

frameskip_type = 2
frameskip_value = 1
safe_frameskip = 0
show_frame_counter = 0
screen_orientation = 2
screen_swap = 0
savestate_number = 0
fast_forward = 0
enable_sound = 1
clock_speed = 0
threaded_3d = 1
mirror_touch = 0
compress_savestates = 1
savestate_snapshot = 1
unzip_roms = 0
preload_roms = 0
backup_in_savestates = 1
ignore_gamecard_limit = 0
frame_interval = 0
trim_roms = 0
fix_main_2d_screen = 0
disable_edge_marking = 0
interframe_blend = 0
hires_3d = 0
use_rtc_custom_time = 0
rtc_custom_time = 0
rtc_system_time = 0
slot2_device_type = 0
rumble_frames = 3
firmware.username = Dr DraStic
firmware.language = 1
firmware.favorite_color = 0
firmware.birthday_month = 1
firmware.birthday_day = 1
enable_cheats = 1
controls_a[CONTROL_INDEX_UP] = 1032
controls_a[CONTROL_INDEX_DOWN] = 1033
controls_a[CONTROL_INDEX_LEFT] = 1034
controls_a[CONTROL_INDEX_RIGHT] = 1035
controls_a[CONTROL_INDEX_A] = 1025
controls_a[CONTROL_INDEX_B] = 1024
controls_a[CONTROL_INDEX_X] = 1026
controls_a[CONTROL_INDEX_Y] = 1027
controls_a[CONTROL_INDEX_L] = 1028
controls_a[CONTROL_INDEX_R] = 1029
controls_a[CONTROL_INDEX_START] = 1037
controls_a[CONTROL_INDEX_SELECT] = 1036
controls_a[CONTROL_INDEX_HINGE] = 104
controls_a[CONTROL_INDEX_TOUCH_CURSOR_UP] = 1217
controls_a[CONTROL_INDEX_TOUCH_CURSOR_DOWN] = 1153
controls_a[CONTROL_INDEX_TOUCH_CURSOR_LEFT] = 1216
controls_a[CONTROL_INDEX_TOUCH_CURSOR_RIGHT] = 1152
controls_a[CONTROL_INDEX_TOUCH_CURSOR_PRESS] = 1038
controls_a[CONTROL_INDEX_MENU] = 109
controls_a[CONTROL_INDEX_SAVE_STATE] = 318
controls_a[CONTROL_INDEX_LOAD_STATE] = 320
controls_a[CONTROL_INDEX_FAST_FORWARD] = 8
controls_a[CONTROL_INDEX_SWAP_SCREENS] = 115
controls_a[CONTROL_INDEX_SWAP_ORIENTATION_A] = 97
controls_a[CONTROL_INDEX_SWAP_ORIENTATION_B] = 100
controls_a[CONTROL_INDEX_LOAD_GAME] = 65535
controls_a[CONTROL_INDEX_QUIT] = 65535
controls_a[CONTROL_INDEX_FAKE_MICROPHONE] = 65535
controls_a[CONTROL_INDEX_UI_UP] = 338
controls_a[CONTROL_INDEX_UI_DOWN] = 337
controls_a[CONTROL_INDEX_UI_LEFT] = 336
controls_a[CONTROL_INDEX_UI_RIGHT] = 335
controls_a[CONTROL_INDEX_UI_SELECT] = 13
controls_a[CONTROL_INDEX_UI_BACK] = 8
controls_a[CONTROL_INDEX_UI_EXIT] = 27
controls_a[CONTROL_INDEX_UI_PAGE_UP] = 331
controls_a[CONTROL_INDEX_UI_PAGE_DOWN] = 334
controls_a[CONTROL_INDEX_UI_SWITCH] = 481
controls_b[CONTROL_INDEX_UP] = 65535
controls_b[CONTROL_INDEX_DOWN] = 65535
controls_b[CONTROL_INDEX_LEFT] = 65535
controls_b[CONTROL_INDEX_RIGHT] = 65535
controls_b[CONTROL_INDEX_A] = 65535
controls_b[CONTROL_INDEX_B] = 65535
controls_b[CONTROL_INDEX_X] = 65535
controls_b[CONTROL_INDEX_Y] = 65535
controls_b[CONTROL_INDEX_L] = 65535
controls_b[CONTROL_INDEX_R] = 65535
controls_b[CONTROL_INDEX_START] = 65535
controls_b[CONTROL_INDEX_SELECT] = 65535
controls_b[CONTROL_INDEX_HINGE] = 65535
controls_b[CONTROL_INDEX_TOUCH_CURSOR_UP] = 65535
controls_b[CONTROL_INDEX_TOUCH_CURSOR_DOWN] = 65535
controls_b[CONTROL_INDEX_TOUCH_CURSOR_LEFT] = 65535
controls_b[CONTROL_INDEX_TOUCH_CURSOR_RIGHT] = 65535
controls_b[CONTROL_INDEX_TOUCH_CURSOR_PRESS] = 65535
controls_b[CONTROL_INDEX_MENU] = 1039
controls_b[CONTROL_INDEX_SAVE_STATE] = 65535
controls_b[CONTROL_INDEX_SAVE_STATE] = 65535
controls_b[CONTROL_INDEX_LOAD_STATE] = 65535
controls_b[CONTROL_INDEX_FAST_FORWARD] = 65535
controls_b[CONTROL_INDEX_SWAP_SCREENS] = 1040
controls_b[CONTROL_INDEX_SWAP_ORIENTATION_A] = 1031
controls_b[CONTROL_INDEX_SWAP_ORIENTATION_B] = 1030
controls_b[CONTROL_INDEX_LOAD_GAME] = 65535
controls_b[CONTROL_INDEX_QUIT] = 65535
controls_b[CONTROL_INDEX_FAKE_MICROPHONE] = 65535
controls_b[CONTROL_INDEX_UI_UP] = 1032
controls_b[CONTROL_INDEX_UI_DOWN] = 1033
controls_b[CONTROL_INDEX_UI_LEFT] = 1034
controls_b[CONTROL_INDEX_UI_RIGHT] = 1035
controls_b[CONTROL_INDEX_UI_SELECT] = 1025
controls_b[CONTROL_INDEX_UI_BACK] = 1026
controls_b[CONTROL_INDEX_UI_EXIT] = 1024
controls_b[CONTROL_INDEX_UI_PAGE_UP] = 1028
controls_b[CONTROL_INDEX_UI_PAGE_DOWN] = 1029
controls_b[CONTROL_INDEX_UI_SWITCH] = 1039

Essentially

I changed analog stick press to 1038

controls_a[CONTROL_INDEX_TOUCH_CURSOR_PRESS] = 1038
controls_b[CONTROL_INDEX_TOUCH_CURSOR_PRESS] = 1038

and I changed

these fields to 1039 ( code for pressing on '+' button on device)

controls_b[CONTROL_INDEX_MENU] = 1039
controls_b[CONTROL_INDEX_UI_SWITCH] = 1039

and fixed up the D-Pad and Analog stick movement values.

So now, on the device, for any Nintendo DS game running in Drastic emulator :

dremond71 commented 2 days ago

Besides this tiny issue, I find the ArkOS system to be awesome. Thx for creating and maintaining this. :)

christianhaitian commented 2 days ago

Thanks for the settings recommendation. I knew that was an issue but the same image used for the rgb10x is primarily focused on the rg351mp and I didn't take the time to figure out how to best address this for the rgb10max. I'll keep this configuration handy for possible future inclusion in a future update. Enjoy!

dremond71 commented 2 days ago

Cool. You are welcome :)

On Sat, Nov 30, 2024, 6:46 p.m. christianhaitian @.***> wrote:

Thanks for the settings recommendation. I knew that was an issue but the same image used for the rgb10x is primarily focused on the rg351mp and I didn't take the time to figure out how to best address this for the rgb10max. I'll keep this configuration handy for possible future inclusion in a future update. Enjoy!

— Reply to this email directly, view it on GitHub https://github.com/christianhaitian/arkos/issues/1229#issuecomment-2509479667, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABIM64LLM6QOHFZCYYXQ7F32DJE5JAVCNFSM6AAAAABSY6X4CKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMBZGQ3TSNRWG4 . You are receiving this because you authored the thread.Message ID: @.***>

dremond71 commented 1 day ago

Cool.

Maybe put it in the readme or wiki under RGB10x category or something? Just a thought. :)

On Sat, Nov 30, 2024, 6:46 p.m. christianhaitian @.***> wrote:

Thanks for the settings recommendation. I knew that was an issue but the same image used for the rgb10x is primarily focused on the rg351mp and I didn't take the time to figure out how to best address this for the rgb10max. I'll keep this configuration handy for possible future inclusion in a future update. Enjoy!

— Reply to this email directly, view it on GitHub https://github.com/christianhaitian/arkos/issues/1229#issuecomment-2509479667, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABIM64LLM6QOHFZCYYXQ7F32DJE5JAVCNFSM6AAAAABSY6X4CKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMBZGQ3TSNRWG4 . You are receiving this because you authored the thread.Message ID: @.***>