mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-15 06:50:32 +00:00
(Cocoa) Add stub scrollWheel callback
This commit is contained in:
parent
97a5e77181
commit
183dc914c4
@ -192,6 +192,10 @@ static int16_t cocoa_mouse_state(cocoa_input_data_t *apple,
|
||||
return apple->mouse_wu;
|
||||
case RETRO_DEVICE_ID_MOUSE_WHEELDOWN:
|
||||
return apple->mouse_wd;
|
||||
case RETRO_DEVICE_ID_MOUSE_HORIZ_WHEELUP:
|
||||
return apple->mouse_wl;
|
||||
case RETRO_DEVICE_ID_MOUSE_HORIZ_WHEELDOWN:
|
||||
return apple->mouse_wr;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
@ -45,6 +45,8 @@ typedef struct
|
||||
int16_t mouse_rel_y;
|
||||
int16_t mouse_wu;
|
||||
int16_t mouse_wd;
|
||||
int16_t mouse_wl;
|
||||
int16_t mouse_wr;
|
||||
|
||||
const input_device_driver_t *sec_joypad;
|
||||
const input_device_driver_t *joypad;
|
||||
|
@ -57,6 +57,16 @@ void cocoagl_gfx_ctx_update(void);
|
||||
void *glkitview_init(void);
|
||||
|
||||
@implementation CocoaView
|
||||
|
||||
#if defined(HAVE_COCOA)
|
||||
#include "../../../input/drivers/cocoa_input.h"
|
||||
|
||||
- (void)scrollWheel:(NSEvent *)theEvent {
|
||||
cocoa_input_data_t *apple = (cocoa_input_data_t*)input_driver_get_data();
|
||||
(void)apple;
|
||||
}
|
||||
#endif
|
||||
|
||||
+ (CocoaView*)get
|
||||
{
|
||||
if (!g_instance)
|
||||
|
Loading…
Reference in New Issue
Block a user