remove unused includes

This commit is contained in:
Felix Kratz 2023-06-26 14:18:09 +02:00
parent ced353079d
commit 5b820d3b5d
5 changed files with 10 additions and 12 deletions

View file

@ -1,5 +1,4 @@
#pragma once
#include <Carbon/Carbon.h>
#include <mach/mach.h>
#include "misc/memory_pool.h"
#include "bar_manager.h"

View file

@ -1,4 +1,3 @@
#include <Carbon/Carbon.h>
#include "event.h"
#include "event_loop.h"

View file

@ -1,7 +1,17 @@
#include <Carbon/Carbon.h>
#include "mouse.h"
extern struct event_loop g_event_loop;
static const EventTypeSpec mouse_events [] = {
{ kEventClassMouse, kEventMouseDown },
{ kEventClassMouse, kEventMouseUp },
{ kEventClassMouse, kEventMouseDragged },
{ kEventClassMouse, kEventMouseEntered },
{ kEventClassMouse, kEventMouseExited }
};
static pascal OSStatus mouse_handler(EventHandlerCallRef next, EventRef e, void *data) {
switch (GetEventKind(e)) {
case kEventMouseUp: {

View file

@ -1,14 +1,5 @@
#pragma once
#include <Carbon/Carbon.h>
#include "event_loop.h"
#include "event.h"
static const EventTypeSpec mouse_events [] = {
{ kEventClassMouse, kEventMouseDown },
{ kEventClassMouse, kEventMouseUp },
{ kEventClassMouse, kEventMouseDragged },
{ kEventClassMouse, kEventMouseEntered },
{ kEventClassMouse, kEventMouseExited }
};
void mouse_begin(void);

View file

@ -1,4 +1,3 @@
#include "Carbon/Carbon.h"
#include "CoreAudio/CoreAudio.h"
#include <CoreAudio/AudioHardware.h>