Foray Library
rapid prototyping framework for crossplatform development of vulkan hardware ray tracing applications
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Public Attributes | List of all members
foray::osi::EventInputMouseMoved Class Reference

Event type describing a mouse cursor movement event. More...

#include <foray_event.hpp>

Inheritance diagram for foray::osi::EventInputMouseMoved:
foray::osi::EventInput foray::osi::Event foray::Polymorphic

Public Member Functions

 EventInputMouseMoved ()=default
 
 EventInputMouseMoved (Window *const source, const uint32_t timestamp, InputDevice *const device, fp32_t currentx, fp32_t currenty, fp32_t relativeX, fp32_t relativeY)
 
- Public Member Functions inherited from foray::osi::EventInput
 EventInput ()=default
 
 EventInput (Window *const source, const uint32_t timestamp, const EType type, InputDevice *const device)
 
- Public Member Functions inherited from foray::osi::Event
 Event ()=default
 
 Event (Window *const source, const uint32_t timestamp, const EType type)
 
 Event (Window *const source, const uint32_t timestamp, const int8_t customtype)
 
virtual ~Event ()
 

Public Attributes

fp32_t CurrentX = 0.f
 Current mouse x position.
 
fp32_t CurrentY = 0.f
 Current mouse y position.
 
fp32_t RelativeX = 0.f
 Mouse x relative movement since last event.
 
fp32_t RelativeY = 0.f
 Mouse y relative movement since last event.
 
- Public Attributes inherited from foray::osi::EventInput
InputDeviceSourceDevice = nullptr
 Input Device that the input was read from.
 
- Public Attributes inherited from foray::osi::Event
WindowSource = nullptr
 Source window that recorded the event, if applicable.
 
uint32_t Timestamp = 0
 Timestamp when the action was recorded.
 
EType Type = EType::Undefined
 Event type.
 
int16_t CustomType = 0
 For custom event type overloads, this value may be set.
 
SDL_Event RawSdlEventData = {}
 Raw SDL_Event data this event was derived from.
 

Additional Inherited Members

- Public Types inherited from foray::osi::Event
enum class  EType : int16_t {
  Undefined = -1 , InputAnalogue , InputBinary , InputDirectional ,
  InputMouseMoved , WindowResized , WindowFocusChanged , WindowCloseRequested ,
  WindowItemDropped , InputDeviceAvailability , Custom , ENUM_MAX
}
 Event type enum, allows handling events in switch structures. More...
 
- Protected Member Functions inherited from foray::Polymorphic
virtual void __makeMePolymorphic ()
 

Detailed Description

Event type describing a mouse cursor movement event.

Constructor & Destructor Documentation

◆ EventInputMouseMoved() [1/2]

foray::osi::EventInputMouseMoved::EventInputMouseMoved ( )
inlinedefault

◆ EventInputMouseMoved() [2/2]

foray::osi::EventInputMouseMoved::EventInputMouseMoved ( Window *const  source,
const uint32_t  timestamp,
InputDevice *const  device,
fp32_t  currentx,
fp32_t  currenty,
fp32_t  relativeX,
fp32_t  relativeY 
)
inline

Member Data Documentation

◆ CurrentX

fp32_t foray::osi::EventInputMouseMoved::CurrentX = 0.f

Current mouse x position.

◆ CurrentY

fp32_t foray::osi::EventInputMouseMoved::CurrentY = 0.f

Current mouse y position.

◆ RelativeX

fp32_t foray::osi::EventInputMouseMoved::RelativeX = 0.f

Mouse x relative movement since last event.

◆ RelativeY

fp32_t foray::osi::EventInputMouseMoved::RelativeY = 0.f

Mouse y relative movement since last event.


The documentation for this class was generated from the following file: