bunnei
aef159354c
renderer_opengl: Move Frame/FrameMailbox to OpenGL namespace.
6 years ago
bunnei
2e16c23784
frontend: sdl2: emu_window: Implement separate presentation thread.
6 years ago
bunnei
0c82b00dfd
core: frontend: emu_window: Add TextureMailbox class.
6 years ago
ReinUsesLisp
f92cbc5501
yuzu: Implement Vulkan frontend
Adds a Qt and SDL2 frontend for Vulkan. It also finishes the missing
bits on Vulkan initialization.
6 years ago
ReinUsesLisp
37eaf39b44
emu_window: Pass OnMinimalClientAreaChangeRequest argument by copy
There's no performance improvement in passing an unsigned pair by
reference.
7 years ago
Lioncash
1230a0e7ce
core/frontend/emu_window: Make GraphicsContext's destructor virtual
This class is used in a polymorphic context, so destruction of the
context will lead to undefined behavior if the destructor isn't virtual.
7 years ago
Lioncash
46b3209abb
core/frontend/emu_window: Make ClipToTouchScreen a const member function
This member function doesn't modify instance state, so it can have the
const specifier applied to it.
7 years ago
James Rowe
c6a0ab9792
QT Frontend: Migrate to QOpenGLWindow
7 years ago
Lioncash
2e715ef70d
emu_window: Ensure WindowConfig members are always initialized
Previously we weren't always initializing all members of the struct.
Prevents potentially wonky behavior from occurring.
7 years ago
Lioncash
0a93b45b6a
core: Namespace EmuWindow
Gets the class out of the global namespace.
7 years ago
bunnei
482cf8a005
frontend: Update for undocked Switch screen layout.
8 years ago
wwylele
2617de1fe6
EmuWindow: refactor touch input into a TouchDevice
9 years ago
wwylele
188194908c
move MotionEmu from core/frontend to input_common as a InputDevice
9 years ago
Yuri Kunde Schlesner
d1bf7919da
Move framebuffer_layout from Common to Core
This removes a dependency inversion between core and common. It's also
the proper place for the file since it makes screen layout decisions
specific to the 3DS.
9 years ago
wwylele
e02c4b7195
Input: remove unused stuff & clean up
1. removed zl, zr and c-stick from HID::PadState. They are handled by IR, not HID
2. removed button handling in EmuWindow
3. removed key_map
4. cleanup #include
9 years ago
wwylele
38e800f70d
InputCommon: add Keyboard
9 years ago
wwylele
d7d40b3c56
Frontend: make motion sensor interfaced thread-safe
9 years ago
wwylele
bcf9d20d57
Frontend: emulate motion sensor
9 years ago
MerryMage
64f98f4d0f
core: Move emu_window and key_map into core
* Removes circular dependences (common should not depend on core)
9 years ago
James Rowe
d9305b0a07
Add default hotkey to swap primary screens.
Also minor style changes
9 years ago
James Rowe
2b1654ad9b
Support additional screen layouts.
Allows users to choose a single screen layout or a large screen layout.
Adds a configuration option to change the prominent screen.
10 years ago
Emmanuel Gil Peyrot
ebdae19fd2
Remove empty newlines in #include blocks.
This makes clang-format useful on those.
Also add a bunch of forgotten transitive includes, which otherwise
prevented compilation.
9 years ago
Yuri Kunde Schlesner
396a8d91a4
Manually tweak source formatting and then re-run clang-format
9 years ago
Emmanuel Gil Peyrot
dc8479928c
Sources: Run clang-format on everything.
9 years ago
wwylele
6cccdcacd2
fixup! fixup! Refactor input system
10 years ago
wwylele
03631f9b8f
Refactor input subsystem
10 years ago
wwylele
6bd5f98272
remove unnecessary const
10 years ago
wwylele
db151efd0a
implement accel and gyro backend
10 years ago
Emmanuel Gil Peyrot
22ae87530b
Common: Cleanup emu_window includes.
11 years ago
Yuri Kunde Schlesner
e1fbac3ca1
Common: Remove common.h
11 years ago
Zaneo
b8328593fe
EmuWindow: Clip mouse input coordinates to emulated screen dimensions.
If the mouse position for a mouse move/drag would take it outside the emulated screen dimensions, clip the coordinates to
the emulated screen dimensions.
Qt and GLFW will report negative coordinates for mouse positions to the left, or above citra window. Added restriction
to mouse coordinates passed to touchmoved by Qt/GLFW to be greater or equal to zero.
11 years ago
Subv
c0d1a91017
EmuWindow: Fixed a reference to a temporary variable
in GetTouchState()
11 years ago
bunnei
d61b26b79f
HID: Complete refactor of pad/touch input to fix threading issues.
11 years ago
bunnei
953e09ddb5
EmuWindow: Made pad/touch functions non-static.
11 years ago
bunnei
543232436f
EmuWindow: Added infrastructure code to enable touchpad support.
11 years ago
bunnei
25633b431d
Fixed EmuWindow typo (fixes OSX build)
11 years ago
bunnei
9960c49c21
Set framebuffer layout from EmuWindow.
11 years ago
purpasmart96
ebfd831ccb
License change
11 years ago
Tony Wasserka
5785f764ab
EmuWindow: Add some explicit documentation and set proper minimal client area size.
11 years ago
Tony Wasserka
6a6464807a
EmuWindow: Add a TODO.
Implementing this function currently is not critical, as we don't perform any configuration changes, yet.
However, the interface is a good starting point for adding this functionality.
11 years ago
Tony Wasserka
19bb01c223
EmuWindow: Better document the purpose of OnMinimalClientAreaChangeRequest.
11 years ago
Tony Wasserka
182476c96a
EmuWindow: Remove window title getters/setters.
The window title is none of the emulation core's business. The GUI code is free to put whatever it wants there.
Providing properly thread-safe window title getters and setters is a mess anyway.
11 years ago
Tony Wasserka
ded9c8a826
EmuWindow: Add documentation.
11 years ago
Tony Wasserka
722ce22589
EmuWindow: Add support for specifying minimal client area sizes.
11 years ago
Tony Wasserka
bd8f491e4c
Fixup EmuWindow interface and implementations thereof.
11 years ago
Kevin Hartman
221a9b023d
Viewport scaling and display density independence
The view is scaled to be as large as possible, without changing the aspect, within the bounds of the window.
On "retina" displays, or other displays where window units != pixels, the view should no longer draw incorrectly.
12 years ago
Lioncash
827e7a1898
emu_window: Fix initializer list order.
Gets rid of a warning on OSX.
11 years ago
archshift
7fa4dbd0c6
Removed uses of raw c-string manipulation functions.
11 years ago
archshift
e6594f9f53
Added configuration file system.
Uses QSettings on citra-qt, and inih on citra-cli.
11 years ago
Kevin Hartman
02fd19b2f6
Added support for multiple input device types for KeyMap and connected Qt.
11 years ago