openMSX
|
#include "JoystickId.hh"
#include "SDLKey.hh"
#include "StringStorage.hh"
#include "TclObject.hh"
#include "static_vector.hh"
#include "stl.hh"
#include <cassert>
#include <cstdint>
#include <string>
#include <utility>
#include <variant>
#include <SDL.h>
Go to the source code of this file.
Namespaces | |
namespace | openmsx |
This file implemented 3 utility functions: | |
Enumerations | |
enum class | openmsx::EventType : uint8_t { openmsx::KEY_UP = event_index<KeyUpEvent> , openmsx::KEY_DOWN = event_index<KeyDownEvent> , openmsx::MOUSE_MOTION = event_index<MouseMotionEvent> , openmsx::MOUSE_BUTTON_UP = event_index<MouseButtonUpEvent> , openmsx::MOUSE_BUTTON_DOWN = event_index<MouseButtonDownEvent> , openmsx::MOUSE_WHEEL = event_index<MouseWheelEvent> , openmsx::JOY_AXIS_MOTION = event_index<JoystickAxisMotionEvent> , openmsx::JOY_HAT = event_index<JoystickHatEvent> , openmsx::JOY_BUTTON_UP = event_index<JoystickButtonUpEvent> , openmsx::JOY_BUTTON_DOWN = event_index<JoystickButtonDownEvent> , openmsx::OSD_CONTROL_RELEASE = event_index<OsdControlReleaseEvent> , openmsx::OSD_CONTROL_PRESS = event_index<OsdControlPressEvent> , openmsx::WINDOW = event_index<WindowEvent> , openmsx::TEXT = event_index<TextEvent> , openmsx::FILE_DROP = event_index<FileDropEvent> , openmsx::QUIT = event_index<QuitEvent> , openmsx::GROUP = event_index<GroupEvent> , openmsx::BOOT = event_index<BootEvent> , openmsx::FINISH_FRAME = event_index<FinishFrameEvent> , openmsx::FRAME_DRAWN = event_index<FrameDrawnEvent> , openmsx::BREAK = event_index<BreakEvent> , openmsx::SWITCH_RENDERER = event_index<SwitchRendererEvent> , openmsx::TAKE_REVERSE_SNAPSHOT = event_index<TakeReverseSnapshotEvent> , openmsx::CLICOMMAND = event_index<CliCommandEvent> , openmsx::AFTER_TIMED = event_index<AfterTimedEvent> , openmsx::MACHINE_LOADED = event_index<MachineLoadedEvent> , openmsx::MACHINE_ACTIVATED = event_index<MachineActivatedEvent> , openmsx::MACHINE_DEACTIVATED = event_index<MachineDeactivatedEvent> , openmsx::MIDI_IN_READER = event_index<MidiInReaderEvent> , openmsx::MIDI_IN_WINDOWS = event_index<MidiInWindowsEvent> , openmsx::MIDI_IN_COREMIDI = event_index<MidiInCoreMidiEvent> , openmsx::MIDI_IN_COREMIDI_VIRTUAL = event_index<MidiInCoreMidiVirtualEvent> , openmsx::MIDI_IN_ALSA = event_index<MidiInALSAEvent> , openmsx::RS232_TESTER = event_index<Rs232TesterEvent> , openmsx::RS232_NET = event_index<Rs232NetEvent> , openmsx::IMGUI_DELAYED_ACTION = event_index<ImGuiDelayedActionEvent> , openmsx::IMGUI_ACTIVE = event_index<ImGuiActiveEvent> , openmsx::NUM_EVENT_TYPES } |
Functions | |
EventType | openmsx::getType (const Event &event) |
std::string | openmsx::toString (const Event &event) |
Get a string representation of this event. | |
TclObject | openmsx::toTclList (const Event &event) |
Similar to toString(), but retains the structure of the event. | |
bool | openmsx::operator== (const Event &x, const Event &y) |
bool | openmsx::matches (const Event &self, const Event &other) |
Does this event 'match' the given event. | |
template<typename T > | |
const T * | openmsx::get_event_if (const Event &event) |
template<typename T > | |
const T & | openmsx::get_event (const Event &event) |
Variables | |
template<typename T > | |
constexpr uint8_t | openmsx::event_index = get_index<T, Event>::value |