Merge remote-tracking branch 'origin/master' into version/4.1
This commit is contained in:
18
src/pic.c
18
src/pic.c
@@ -225,12 +225,7 @@ find_best_interrupt(pic_t *dev)
|
|||||||
static __inline void
|
static __inline void
|
||||||
pic_update_pending_xt(void)
|
pic_update_pending_xt(void)
|
||||||
{
|
{
|
||||||
if (find_best_interrupt(&pic) != -1) {
|
pic.int_pending = (find_best_interrupt(&pic) != -1);
|
||||||
latched++;
|
|
||||||
if (latched == 1)
|
|
||||||
timer_on_auto(&pic_timer, 0.35);
|
|
||||||
} else if (latched == 0)
|
|
||||||
pic.int_pending = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline void
|
static __inline void
|
||||||
@@ -248,11 +243,7 @@ pic_callback(void *priv)
|
|||||||
{
|
{
|
||||||
pic_t *dev = (pic_t *) priv;
|
pic_t *dev = (pic_t *) priv;
|
||||||
|
|
||||||
dev->int_pending = 1;
|
update_pending();
|
||||||
|
|
||||||
latched--;
|
|
||||||
if (latched > 0)
|
|
||||||
timer_on_auto(&pic_timer, 0.35);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@@ -501,7 +492,10 @@ pic_write(uint16_t addr, uint8_t val, void *priv)
|
|||||||
break;
|
break;
|
||||||
case STATE_NONE:
|
case STATE_NONE:
|
||||||
dev->imr = val;
|
dev->imr = val;
|
||||||
update_pending();
|
if (is286)
|
||||||
|
update_pending();
|
||||||
|
else
|
||||||
|
timer_on_auto(&pic_timer, .0 * ((10000000.0 * (double) xt_cpu_multi) / (double) cpu_s->rspeed));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -73,8 +73,8 @@ RendererStack::RendererStack(QWidget *parent, int monitor_index)
|
|||||||
|
|
||||||
m_monitor_index = monitor_index;
|
m_monitor_index = monitor_index;
|
||||||
#if defined __unix__ && !defined __HAIKU__
|
#if defined __unix__ && !defined __HAIKU__
|
||||||
mousedata.mouse_type = getenv("EMU86BOX_MOUSE"), auto_mouse_type[16];
|
mousedata.mouse_type = getenv("EMU86BOX_MOUSE"), char auto_mouse_type[16];
|
||||||
if (!mousedata.mouse_type || (mouse_type[0] == '\0') || !stricmp(mousedata.mouse_type, "auto")) {
|
if (!mousedata.mouse_type || (mousedata.mouse_type[0] == '\0') || !stricmp(mousedata.mouse_type, "auto")) {
|
||||||
if (QApplication::platformName().contains("wayland"))
|
if (QApplication::platformName().contains("wayland"))
|
||||||
strcpy(auto_mouse_type, "wayland");
|
strcpy(auto_mouse_type, "wayland");
|
||||||
else if (QApplication::platformName() == "eglfs")
|
else if (QApplication::platformName() == "eglfs")
|
||||||
@@ -87,17 +87,17 @@ RendererStack::RendererStack(QWidget *parent, int monitor_index)
|
|||||||
}
|
}
|
||||||
|
|
||||||
# ifdef WAYLAND
|
# ifdef WAYLAND
|
||||||
if (!stricmp(mouse_type, "wayland")) {
|
if (!stricmp(mousedata.mouse_type, "wayland")) {
|
||||||
wl_init();
|
wl_init();
|
||||||
this->mouse_capture_func = wl_mouse_capture;
|
this->mouse_capture_func = wl_mouse_capture;
|
||||||
this->mouse_uncapture_func = wl_mouse_uncapture;
|
this->mouse_uncapture_func = wl_mouse_uncapture;
|
||||||
}
|
}
|
||||||
# endif
|
# endif
|
||||||
# ifdef EVDEV_INPUT
|
# ifdef EVDEV_INPUT
|
||||||
if (!stricmp(mouse_type, "evdev"))
|
if (!stricmp(mousedata.mouse_type, "evdev"))
|
||||||
evdev_init();
|
evdev_init();
|
||||||
# endif
|
# endif
|
||||||
if (!stricmp(mouse_type, "xinput2")) {
|
if (!stricmp(mousedata.mouse_type, "xinput2")) {
|
||||||
extern void xinput2_init();
|
extern void xinput2_init();
|
||||||
extern void xinput2_exit();
|
extern void xinput2_exit();
|
||||||
xinput2_init();
|
xinput2_init();
|
||||||
|
|||||||
@@ -51,9 +51,6 @@ int title_set = 0;
|
|||||||
int resize_pending = 0;
|
int resize_pending = 0;
|
||||||
int resize_w = 0;
|
int resize_w = 0;
|
||||||
int resize_h = 0;
|
int resize_h = 0;
|
||||||
double mouse_sensitivity = 1.0; /* Unused. */
|
|
||||||
double mouse_x_error = 0.0; /* Unused. */
|
|
||||||
double mouse_y_error = 0.0; /* Unused. */
|
|
||||||
static uint8_t interpixels[17842176];
|
static uint8_t interpixels[17842176];
|
||||||
|
|
||||||
extern void RenderImGui(void);
|
extern void RenderImGui(void);
|
||||||
|
|||||||
Reference in New Issue
Block a user