forked from Lephenixnoir/gint
Compare commits
2 Commits
98fea4f2ec
...
ddf340cccd
Author | SHA1 | Date |
---|---|---|
calamari | ddf340cccd | |
calamari | 5c331e5fa0 |
|
@ -45,6 +45,12 @@ void hw_detect(void);
|
|||
#define isSH4() (!isSH3())
|
||||
#endif
|
||||
|
||||
#if defined(FX9860G)
|
||||
#define isSlim() (gint[HWCALC] == HWCALC_FX9860G_SLIM)
|
||||
#else
|
||||
#define isSlim() 0
|
||||
#endif
|
||||
|
||||
#ifdef FXCG50
|
||||
#define isSH3() 0
|
||||
#define isSH4() 1
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#include <gint/gint.h>
|
||||
#include <gint/display.h>
|
||||
#include <gint/hardware.h>
|
||||
|
||||
#include <string.h>
|
||||
|
||||
|
@ -17,7 +18,10 @@ static int __osmenu_id;
|
|||
|
||||
static void __osmenu_handler(void)
|
||||
{
|
||||
__PutKeyCode(0x04, 0x09, 0);
|
||||
if (isSlim())
|
||||
__PutKeyCode(0x07, 0x0A, 0);
|
||||
else
|
||||
__PutKeyCode(0x04, 0x09, 0);
|
||||
|
||||
__Timer_Stop(__osmenu_id);
|
||||
__Timer_Deinstall(__osmenu_id);
|
||||
|
|
|
@ -148,7 +148,7 @@ void iokbd_scan(uint8_t *scan)
|
|||
for(int i = 0; i < 12; i++) scan[i] = iokbd_row(i);
|
||||
|
||||
/* Translate fx-9860G Slim scancodes to standard scancodes */
|
||||
if (gint[HWCALC] == HWCALC_FX9860G_SLIM)
|
||||
if (isSlim())
|
||||
{
|
||||
uint8_t slim_scan[12];
|
||||
for (uint i = 0; i < 10; i++)
|
||||
|
|
|
@ -168,7 +168,7 @@ void t6k11_backlight(int setting)
|
|||
TODO: Document the PFC to remove these addresses */
|
||||
if(isSH3())
|
||||
{
|
||||
if (gint[HWCALC] == HWCALC_FX9860G_SLIM)
|
||||
if (isSlim())
|
||||
{
|
||||
port = (void *)0xa4000126;
|
||||
mask = 0x20;
|
||||
|
|
Loading…
Reference in New Issue