(Cocoa) Add stub scrollWheel callback

This commit is contained in:
Twinaphex 2016-10-05 02:00:11 +02:00
parent 97a5e77181
commit 183dc914c4
3 changed files with 16 additions and 0 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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)