X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fdfinput%2Fpad.c;fp=plugins%2Fdfinput%2Fpad.c;h=3e333660c8b72ad987e343f4cb4051e5cf1ce25b;hp=7e00a1131fcdb28928883efd63da5c5c221610f2;hb=7a8d521fba9c86ae7b51369ce061bf63112b745f;hpb=acc415b3040edfcc91226955f39b405f09cca430 diff --git a/plugins/dfinput/pad.c b/plugins/dfinput/pad.c index 7e00a113..3e333660 100644 --- a/plugins/dfinput/pad.c +++ b/plugins/dfinput/pad.c @@ -42,6 +42,7 @@ enum { CMD_VIBRATION_TOGGLE = 0x4D, }; +#ifndef HAVE_LIBRETRO static struct { uint8_t PadMode; uint8_t PadID; @@ -242,6 +243,7 @@ static void do_vibration(unsigned char value) break; } } +#endif #if 0 #include @@ -254,6 +256,7 @@ unsigned char PADpoll(unsigned char value) { #define PADpoll PADpoll_ #endif +#ifndef HAVE_LIBRETRO unsigned char PADpoll_pad(unsigned char value) { if (CurByte == 0) { CurCmd = value; @@ -302,3 +305,4 @@ void pad_init(void) padstate[i].PadMode = padstate[i].pad.controllerType == PSE_PAD_TYPE_ANALOGPAD; } } +#endif