mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 02:30:35 +00:00
Don't use linuxraw input if the user isn't running RetroArch from a terminal
This commit is contained in:
parent
38ceb89ce4
commit
c0050a7c8b
16
gfx/rpi.c
16
gfx/rpi.c
@ -1,5 +1,6 @@
|
||||
#include <assert.h>
|
||||
#include <math.h>
|
||||
#include <unistd.h>
|
||||
#include <bcm_host.h>
|
||||
#include <VG/openvg.h>
|
||||
#include <VG/vgu.h>
|
||||
@ -172,15 +173,16 @@ static void *rpi_init(const video_info_t *video, const input_driver_t **input, v
|
||||
// one image at the end of the day.
|
||||
rpi->mImage = vgCreateImage(VG_sXBGR_8888, rpi->mTextureWidth, rpi->mTextureHeight, VG_IMAGE_QUALITY_NONANTIALIASED);
|
||||
rpi_set_nonblock_state(rpi, !video->vsync);
|
||||
|
||||
linuxraw_input_t *linuxraw_input = (linuxraw_input_t*)input_linuxraw.init();
|
||||
if (linuxraw_input)
|
||||
|
||||
if (isatty(0))
|
||||
{
|
||||
*input = &input_linuxraw;
|
||||
*input_data = linuxraw_input;
|
||||
linuxraw_input_t *linuxraw_input = (linuxraw_input_t*)input_linuxraw.init();
|
||||
if (linuxraw_input)
|
||||
{
|
||||
*input = &input_linuxraw;
|
||||
*input_data = linuxraw_input;
|
||||
}
|
||||
}
|
||||
else
|
||||
*input = NULL;
|
||||
|
||||
return rpi;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user