Skip to content

Commit

Permalink
Updated support devices table
Browse files Browse the repository at this point in the history
  • Loading branch information
ducalex committed Jan 12, 2025
1 parent 5bbb4e5 commit 6f0aa7e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
27 changes: 13 additions & 14 deletions components/retro-go/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,21 @@ Retro-Go's shared library (or framework) provides an easy way to port emulators

# Supported Devices

I develop and test mainly on the [ODROID-GO](targets/odroid-go/docs/README.md). I occasionally test on the [MRGC-G32](targets/mrgc-g32/docs/README.md) as well. All other devices have various degrees of support.

| Name | Status |
|-------------------------------------------------------|--------|
| Name | Status |
|---------------------------------------------------------------|--------|
| [byteboi-rev1](targets/byteboi-rev1/docs/README.md) | |
| [esp32s3-devkit-c](targets/esp32s3-devkit-c/docs/README.md) | |
| [esplay-micro](targets/esplay-micro/docs/README.md) | |
| [esplay-s3](targets/esplay-s3/docs/README.md) | |
| [fri3d-2024](targets/fri3d-2024/docs/README.md) | |
| [mrgc-g32](targets/mrgc-g32/docs/README.md) | |
| [mrgc-gbm](targets/mrgc-gbm/docs/README.md) | |
| [odroid-go](targets/odroid-go/docs/README.md) | |
| [qtpy-gamer](targets/qtpy-gamer/docs/README.md) | |
| [retro-esp32](targets/retro-esp32/docs/README.md) | |
| [retro-ruler](targets/retro-ruler-V1/docs/README.md) | |
| [sdl2](targets/sdl2/docs/README.md) | |
| [esplay-micro](targets/esplay-micro/docs/README.md) | |
| [esplay-s3](targets/esplay-s3/docs/README.md) | Broken |
| [fri3d-2024](targets/fri3d-2024/docs/README.md) | |
| [mrgc-g32](targets/mrgc-g32/docs/README.md) | Official |
| [mrgc-gbm](targets/mrgc-gbm/docs/README.md) | |
| [odroid-go](targets/odroid-go/docs/README.md) | Official |
| [qtpy-gamer](targets/qtpy-gamer/docs/README.md) | Broken |
| [rachel-esp32](targets/rachel-esp32/docs/README.md) | |
| [retro-esp32](targets/retro-esp32/docs/README.md) | |
| [retro-ruler](targets/retro-ruler-V1/docs/README.md) | |
| [sdl2](targets/sdl2/docs/README.md) | Broken |


# Credits
Expand Down
13 changes: 12 additions & 1 deletion components/retro-go/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,25 @@
#define RG_BATTERY_CALC_VOLTAGE(raw) (0)
#endif

// These values are to prevent jitter, so that the battery icon doesn't flicker or
// percent display doesn't oscillate between 77 and 78%, for example
#ifndef RG_BATTERY_UPDATE_THRESHOLD
#define RG_BATTERY_UPDATE_THRESHOLD 1.0f
#endif

#ifndef RG_BATTERY_UPDATE_THRESHOLD_VOLT
#define RG_BATTERY_UPDATE_THRESHOLD_VOLT 0.010f
#endif

// Number of cycles the hardware state must be maintained before the change is reflected in rg_input_read_gamepad.
// The reaction time is calculated as such: N*10ms +/- 10ms. Different hardware types have different requirements.
// Valid range is 1-9
#ifndef RG_GAMEPAD_DEBOUNCE_PRESS
#define RG_GAMEPAD_DEBOUNCE_PRESS (2)
#endif
#ifndef RG_GAMEPAD_DEBOUNCE_RELEASE
#define RG_GAMEPAD_DEBOUNCE_RELEASE (2)
#endif

#ifndef RG_LOG_COLORS
#define RG_LOG_COLORS (1)
#endif
Expand Down
10 changes: 0 additions & 10 deletions components/retro-go/rg_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,6 @@
static esp_adc_cal_characteristics_t adc_chars;
#endif

// Number of cycles the hardware state must be maintained before the change is reflected in rg_input_read_gamepad.
// The reaction time is calculated as such: N*10ms +/- 10ms. Different hardware types have different requirements.
// Valid range is 1-9
#ifndef RG_GAMEPAD_DEBOUNCE_PRESS
#define RG_GAMEPAD_DEBOUNCE_PRESS (2)
#endif
#ifndef RG_GAMEPAD_DEBOUNCE_RELEASE
#define RG_GAMEPAD_DEBOUNCE_RELEASE (2)
#endif

#ifdef RG_GAMEPAD_ADC_MAP
static rg_keymap_adc_t keymap_adc[] = RG_GAMEPAD_ADC_MAP;
#endif
Expand Down

0 comments on commit 6f0aa7e

Please sign in to comment.