JNGL
Easy to use cross-platform 2D game library
Loading...
Searching...
No Matches
jngl
VirtualMouseCursor.hpp
1
// Copyright 2026 Jan Niklas Hasse <jhasse@bixense.com>
2
// For conditions of distribution and use, see copyright notice in LICENSE.txt
3
#pragma once
4
5
#include "
job.hpp
"
6
#include "
Vec2.hpp
"
7
8
namespace
jngl
{
9
10
class
VirtualMouseCursor
:
public
jngl::Job
{
11
public
:
12
virtual
Vec2
getPosition()
const
= 0;
13
virtual
bool
pressed()
const
= 0;
14
virtual
bool
down()
const
= 0;
15
};
16
17
}
// namespace jngl
Vec2.hpp
Contains jngl::Vec2 class.
jngl::Job
Background job which stays part of the main loop independent of the active jngl::Scene.
Definition
job.hpp:62
jngl::Vec2
Two-dimensional vector.
Definition
Vec2.hpp:36
jngl::VirtualMouseCursor
Definition
VirtualMouseCursor.hpp:10
job.hpp
Contains jngl::Job class and related functions.
jngl
JNGL's main namespace.
Definition
Achievement.hpp:10