Drastic on Retropie Controls

Ask questions about DraStic or discuss compatibility issues here.
kaichou
Posts: 1
Joined: Thu Aug 31, 2017 10:40 pm

Drastic on Retropie Controls

Postby kaichou » Thu Aug 31, 2017 10:49 pm

I've made a post on the RetroPie forum here https://retropie.org.uk/forum/topic/125 ... ler-config, however I'm posting here in the case someone here is able to help me as well.

Raspberry 3b
Power Supply used: 5v - 2.5Amp
RetroPie Version: 4.2
Built From: Pre made SD Image: retropie-4.2-rpi2_rpi3.img
USB Devices connected: Teensy LC/Keyboard
Error messages received: No messages, just that I'm trying to figure something out.
Guide used: https://github.com/retropie/retropie-se ... intendo-DS

I'm building a handheld RetroPie using the Teensy LC utilizing the code found HERE on page 7: Porta_Pi_Ultra_Controls_3.ino

At defaults, I'm able to use the Touch Cursor, however it is my right joystick, and is backwards in all directions. To map the buttons, I use a keyboard to navigate to the button config screen. In the right column I'm able to map my Teensy buttons. All mappings appear to work, except the Touch Cursor. After I map it to my left joystick, it doesn't work. Meaning when I move the joystick, nothing happens, the cursor doesn't even appear on the screen.

Following the "Everything is backwards" idea, I tried configuring my left joystick with every direction reversed, and the cursor works. So for some reason it really doesn't like to do up/down/left/right correctly on either joystick, but it is seeing signals from all inputs.

Alternatively, I've tried configuring the drastic.cfg file, but I don't understand how it references the inputs. It uses something called Control Index, and it has seemingly random number strings. The only thing I've been able to figure out is that "65535" means the value is "un-mapped".

Can someone please help me figure this out? Also, I have tried these joysticks on other emulators, and they work just fine.

Contents of drastic.cfg the way I want the system to work, but it doesn't.

Code: Select all

frameskip_type = 2
frameskip_value = 4
show_frame_counter = 1
screen_orientation = 0
screen_scaling = 2
screen_swap = 0
savestate_number = 0
fast_forward = 0
enable_sound = 1
clock_speed = 0
threaded_3d = 0
mirror_touch = 0
compress_savestates = 1
savestate_snapshot = 1
unzip_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
hires_3d = 0
use_rtc_custom_time = 0
rtc_custom_time = 0
rtc_system_time = 0
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] = 273
controls_a[CONTROL_INDEX_DOWN] = 274
controls_a[CONTROL_INDEX_LEFT] = 276
controls_a[CONTROL_INDEX_RIGHT] = 275
controls_a[CONTROL_INDEX_A] = 32
controls_a[CONTROL_INDEX_B] = 306
controls_a[CONTROL_INDEX_X] = 122
controls_a[CONTROL_INDEX_Y] = 120
controls_a[CONTROL_INDEX_L] = 304
controls_a[CONTROL_INDEX_R] = 99
controls_a[CONTROL_INDEX_START] = 13
controls_a[CONTROL_INDEX_SELECT] = 303
controls_a[CONTROL_INDEX_HINGE] = 104
controls_a[CONTROL_INDEX_TOUCH_CURSOR_UP] = 65535
controls_a[CONTROL_INDEX_TOUCH_CURSOR_DOWN] = 65535
controls_a[CONTROL_INDEX_TOUCH_CURSOR_LEFT] = 65535
controls_a[CONTROL_INDEX_TOUCH_CURSOR_RIGHT] = 65535
controls_a[CONTROL_INDEX_TOUCH_CURSOR_PRESS] = 65535
controls_a[CONTROL_INDEX_MENU] = 109
controls_a[CONTROL_INDEX_SAVE_STATE] = 286
controls_a[CONTROL_INDEX_LOAD_STATE] = 288
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_UI_UP] = 273
controls_a[CONTROL_INDEX_UI_DOWN] = 274
controls_a[CONTROL_INDEX_UI_LEFT] = 276
controls_a[CONTROL_INDEX_UI_RIGHT] = 275
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] = 280
controls_a[CONTROL_INDEX_UI_PAGE_DOWN] = 281
controls_a[CONTROL_INDEX_UI_SWITCH] = 304
controls_b[CONTROL_INDEX_UP] = 1029
controls_b[CONTROL_INDEX_DOWN] = 1030
controls_b[CONTROL_INDEX_LEFT] = 1031
controls_b[CONTROL_INDEX_RIGHT] = 1032
controls_b[CONTROL_INDEX_A] = 1024
controls_b[CONTROL_INDEX_B] = 1027
controls_b[CONTROL_INDEX_X] = 1025
controls_b[CONTROL_INDEX_Y] = 1026
controls_b[CONTROL_INDEX_L] = 65535
controls_b[CONTROL_INDEX_R] = 65535
controls_b[CONTROL_INDEX_START] = 1028
controls_b[CONTROL_INDEX_SELECT] = 1033
controls_b[CONTROL_INDEX_HINGE] = 65535
controls_b[CONTROL_INDEX_TOUCH_CURSOR_UP] = 1155
controls_b[CONTROL_INDEX_TOUCH_CURSOR_DOWN] = 1219
controls_b[CONTROL_INDEX_TOUCH_CURSOR_LEFT] = 1154
controls_b[CONTROL_INDEX_TOUCH_CURSOR_RIGHT] = 1218
controls_b[CONTROL_INDEX_TOUCH_CURSOR_PRESS] = 1217
controls_b[CONTROL_INDEX_MENU] = 1216
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] = 65535
controls_b[CONTROL_INDEX_SWAP_ORIENTATION_A] = 65535
controls_b[CONTROL_INDEX_SWAP_ORIENTATION_B] = 65535
controls_b[CONTROL_INDEX_LOAD_GAME] = 65535
controls_b[CONTROL_INDEX_QUIT] = 65535
controls_b[CONTROL_INDEX_UI_UP] = 1029
controls_b[CONTROL_INDEX_UI_DOWN] = 1030
controls_b[CONTROL_INDEX_UI_LEFT] = 1031
controls_b[CONTROL_INDEX_UI_RIGHT] = 1032
controls_b[CONTROL_INDEX_UI_SELECT] = 1024
controls_b[CONTROL_INDEX_UI_BACK] = 1026
controls_b[CONTROL_INDEX_UI_EXIT] = 1027
controls_b[CONTROL_INDEX_UI_PAGE_UP] = 65535
controls_b[CONTROL_INDEX_UI_PAGE_DOWN] = 65535
controls_b[CONTROL_INDEX_UI_SWITCH] = 65535

Return to “Help and Compatibility”

Who is online

Users browsing this forum: Bing [Bot] and 7 guests