Ben Fry
ba63dc2f8c
make DrawListener public, other minor cleanup
2021-11-23 07:27:21 -05:00
Ben Fry
284333b5e0
simplify initListeners()
2021-11-23 06:46:08 -05:00
Ben Fry
bdc58b7e8b
cleaning and documenting
2021-11-23 06:45:23 -05:00
Ben Fry
64339baece
make getCurrentPixelScale() protected, clarify prev frame count
2021-11-22 21:43:00 -05:00
Ben Fry
82247582a4
a little cleanup, some notes
2021-11-22 21:24:13 -05:00
Ben Fry
a4d3a3aa7d
cleanups and clarifications
2021-11-22 19:53:50 -05:00
Ben Fry
17dd8b82c8
clean up a few warnings/renaming a bit
2021-11-22 18:24:50 -05:00
Ben Fry
579f0b999c
using more lambdas and cleaning up warnings
2021-09-30 19:47:35 -04:00
Ben Fry
eacaf696d4
check on how modifiers are used in FX and GL, should be all set
2021-07-05 07:02:23 -04:00
Ben Fry
fac8a8e556
confirmed that the new JOGL release fixes #124 , removes workaround
2021-01-17 19:39:30 -05:00
Ben Fry
5c85264b09
implement a terrible hack for #104 so we can ship
2020-09-15 16:18:58 -04:00
Ben Fry
c5dcfd2edc
readability tweaks
2020-09-15 07:38:54 -04:00
Ben Fry
cc39c94d1d
fix for #50 , alternate solution but based on #75
2020-04-27 14:34:57 -04:00
Ben Fry
26d04aed77
swap getModifiers() for getModifiersEx() to deal with deprecation ( fixes #4 )
2020-01-20 07:51:23 -05:00
Ben Fry
e46eceab96
a little scarier: moving java.awt and javax.imageio out of PImage
2020-01-19 21:24:35 -05:00
Ben Fry
753c5996a7
move loadImage() into PSurface
2020-01-19 21:04:15 -05:00
Ben Fry
05f3cb0b2d
move link() calls that use Desktop into PSurface
2020-01-19 20:50:04 -05:00
Ben Fry
d3feb64237
introduce ShimAWT, moving selectInput/OutputFolder to PSurface, being AWT purge
2020-01-19 16:24:16 -05:00
Ben Fry
269f626f98
incorporate https://github.com/processing/processing/pull/5881 for FBO fix on Intel HD Graphics 3000 devices
2019-10-07 18:27:24 -04:00
Ben Fry
8f994389c4
introduce MACOS constant, deprecate MACOSX
2019-10-07 18:23:34 -04:00
Jakub Valtar
d512d21fcf
Move Ctrl+Left Mouse code from surfaces to PApplet
2018-10-09 09:19:36 +02:00
Jakub Valtar
eb64449f9b
Make sure Ctrl+Left Mouse on MacOS is consistent
...
Make sure PRESS, DRAG and RELEASE report the same mouse button on MacOS.
- If CTRL was pressed during Left PRESS, report Right Button until the button is released, regardless of whether CTRL is still down.
- If CTRL was not pressed during Left PRESS, report Left Button until the button is released, regardless of CTRL state.
Fixes #5672
2018-10-07 21:55:14 +02:00
codeanticode
54fba5da9e
cap framerate at 1000 in OpenGL
2018-02-13 02:13:45 -05:00
Alexander Hurst
a9cc453015
cursor() sets the cursor visible, fixes #5330
2017-12-20 15:09:16 -05:00
Ben Fry
82c772f178
Windows ignores setMinimumSize(), add workaround for #5052
2017-09-03 08:36:23 -04:00
Ben Fry
532fe906ca
deal with warnings
2017-04-22 12:03:34 -04:00
Ben Fry
fa836591b0
Merge pull request #5011 from JakubValtar/blow-up
...
Window placement and pixel density cleanup
2017-04-21 16:57:20 -04:00
Ben Fry
43d15a3365
Merge pull request #5014 from gohai/chip-p3d
...
Unblock hardware-accelerated P3D on ARM Mali devices
2017-04-20 14:36:22 -04:00
gohai
e77ec838b2
Unblock hardware-accelerated P3D on ARM Mali devices
...
This works around a JOGL bug that affects ARM Mali devices, such as the PocketCHIP. (reported by @xranby)
2017-04-20 11:43:51 +02:00
Jakub Valtar
0f0731d1e2
pixelDensity (OpenGL): tidy up some some variables
2017-04-15 19:14:09 +02:00
Jakub Valtar
e457bb3337
pixelDensity (OpenGL): fix stop button on Mac
2017-04-14 19:38:33 +02:00
Jakub Valtar
6d5cc7a326
pixelDensity (OpenGL): fix running 1x on 2x screen on Mac
2017-04-14 19:15:19 +02:00
Jakub Valtar
cf5cfdb334
pixelDensity (OpenGL): fix stop button in 2x present mode
2017-04-13 20:56:12 +02:00
Jakub Valtar
0a6d38e22e
pixelDensity (OpenGL): fix present mode placement
2017-04-13 20:42:35 +02:00
Jakub Valtar
7a5eac6fdd
pixelDensity (OpenGL): fix fullscreen placement on secondary screens
2017-04-13 17:18:05 +02:00
Jakub Valtar
a601323b50
pixelDensity (OpenGL): fix 2x present mode on Windows
2017-04-12 18:57:44 +02:00
Jakub Valtar
d94987cbce
pixelDensity (OpenGL): fix 2x on Windows
2017-04-12 18:57:35 +02:00
gohai
f59855bb84
Add more Raspberry Pi specific fixes to JOGL
...
This adds the following fixes on top of 2f4a52a814 (patches at https://github.com/gohai/jogl ):
* Fix GL overlay offset when overscan is enabled
* Fix the value of mouseButton (#4499 )
* Change libGLESv2 search order to work around longstanding issue in Raspbian
2017-03-05 18:50:26 +01:00
Jakub Valtar
b93f7c2c09
pixelDensity (OpenGL): fix 1x mouse input on macOS
2017-02-19 06:00:41 +01:00
Jakub Valtar
4eb04c4b64
pixelDensity (OpenGL): fix 1x on macOS
2017-02-19 05:47:01 +01:00
Jakub Valtar
8f7e3b1ff3
pixelDensity (OpenGL): scale window and mouse input
2017-02-18 21:28:09 +01:00
Jakub Valtar
8cf56e1fdf
pixelDensity (OpenGL): size sketch and graphics when density changes
2017-02-18 20:29:59 +01:00
Jakub Valtar
fc7fb7464f
pixelDensity (OpenGL): make sure sketch pixel size is initialized
2017-02-18 20:28:38 +01:00
Jonathan Feinberg
1ce4ecba88
Unscrewup merge.
2017-01-29 18:00:32 -05:00
Jonathan Feinberg
8fba6ce033
Fix a number of memory leaks.
2017-01-29 17:51:16 -05:00
Jakub Valtar
345b8ca3d9
Keep Windows timer resolution high for OpenGL sketches
...
Otherwise java.util.Timer used by FPSAnimator uses 10 or 15 ms
resolution, which results in 60 fps sketches running at around 30 fps
and 30 fps sketches running at around 21 fps.
Fixes #4846
2017-01-22 21:44:53 +01:00
Jakub Valtar
7f93baa904
Unify mouse pressed/released events across renderers
...
OPENGL and FX renderers will now correctly report button which triggered
this pressed/released event (same as JAVA2D).
Previously:
- OPENGL would report currently pressed buttons in order LEFT, CENTER,
RIGHT regardless of which button triggered the event. E.g. when holding
LEFT and presing RIGHT, LEFT would be reported. When holding CENTER and
pressing LEFT, LEFT would be reported
- FX would report only first button which is down, so in RELEASE event
button would be missing
Now:
- event contains only button which triggred this event (button just
pressed or just released)
2016-12-29 15:48:15 +01:00
codeanticode
10104cc009
framerate warning
2016-11-04 09:05:36 -03:00
codeanticode
52d4880d88
do not call handleDraw() after the sketch is finished
2016-10-30 10:23:16 -03:00
codeanticode
303a4e9667
remove second dispose() call
2016-10-07 05:37:29 -04:00