JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.opengl.test.junit.newt.event.TestNewtKeyEventAutoRepeatAWT Class Reference

Testing key event order incl. More...

Inheritance diagram for com.jogamp.opengl.test.junit.newt.event.TestNewtKeyEventAutoRepeatAWT:
Collaboration diagram for com.jogamp.opengl.test.junit.newt.event.TestNewtKeyEventAutoRepeatAWT:

Public Member Functions

void initTest ()
 
void releaseTest ()
 
void test01NEWT () throws AWTException, InterruptedException, InvocationTargetException
 
void test02NewtCanvasAWT () throws AWTException, InterruptedException, InvocationTargetException
 
- Public Member Functions inherited from com.jogamp.opengl.test.junit.util.UITestCase
int getMaxTestNameLen ()
 
String getSnapshotFilename (final int sn, String postSNDetail, final GLCapabilitiesImmutable caps, final int width, final int height, final boolean sinkHasAlpha, String fileSuffix, final String destPath)
 
void snapshot (final int sn, final String postSNDetail, final GL gl, final GLReadBufferUtil readBufferUtil, final String fileSuffix, final String destPath)
 Takes a snapshot of the drawable's current front framebuffer. More...
 

Static Public Member Functions

static void initClass ()
 
static void release ()
 
static void main (final String args[]) throws IOException
 
- Static Public Member Functions inherited from com.jogamp.opengl.test.junit.util.UITestCase
static void setResetXRandRIfX11AfterClass ()
 
static int resetXRandRIfX11 ()
 Iterates through all outputs and sets the preferred mode and normal rotation using RandR 1.3. More...
 
static int processCommand (final String[] cmdline, final OutputStream outstream, final StringBuilder outstring, final String outPrefix)
 
static final void oneTimeSetUpUITest ()
 
static final void oneTimeTearDownUITest ()
 

Detailed Description

Testing key event order incl.

auto-repeat (Bug 601)

Note Event order:

  1. EVENT_KEY_PRESSED
  2. EVENT_KEY_RELEASED

Auto-Repeat shall behave as follow:

 D = pressed, U = released
 0 = normal, 1 = auto-repeat

 D(0), [ U(1), D(1), U(1), D(1) ..], U(0)

The idea is if you mask out auto-repeat in your event listener you just get one long pressed key D/U tuple.

Definition at line 87 of file TestNewtKeyEventAutoRepeatAWT.java.

Member Function Documentation

◆ initClass()

static void com.jogamp.opengl.test.junit.newt.event.TestNewtKeyEventAutoRepeatAWT.initClass ( )
static

Definition at line 95 of file TestNewtKeyEventAutoRepeatAWT.java.

◆ initTest()

void com.jogamp.opengl.test.junit.newt.event.TestNewtKeyEventAutoRepeatAWT.initTest ( )

Definition at line 106 of file TestNewtKeyEventAutoRepeatAWT.java.

◆ main()

static void com.jogamp.opengl.test.junit.newt.event.TestNewtKeyEventAutoRepeatAWT.main ( final String  args[]) throws IOException
static

Definition at line 302 of file TestNewtKeyEventAutoRepeatAWT.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ release()

static void com.jogamp.opengl.test.junit.newt.event.TestNewtKeyEventAutoRepeatAWT.release ( )
static

Definition at line 102 of file TestNewtKeyEventAutoRepeatAWT.java.

◆ releaseTest()

void com.jogamp.opengl.test.junit.newt.event.TestNewtKeyEventAutoRepeatAWT.releaseTest ( )

Definition at line 110 of file TestNewtKeyEventAutoRepeatAWT.java.

◆ test01NEWT()

void com.jogamp.opengl.test.junit.newt.event.TestNewtKeyEventAutoRepeatAWT.test01NEWT ( ) throws AWTException, InterruptedException, InvocationTargetException

Definition at line 114 of file TestNewtKeyEventAutoRepeatAWT.java.

Here is the call graph for this function:

◆ test02NewtCanvasAWT()

void com.jogamp.opengl.test.junit.newt.event.TestNewtKeyEventAutoRepeatAWT.test02NewtCanvasAWT ( ) throws AWTException, InterruptedException, InvocationTargetException

Definition at line 125 of file TestNewtKeyEventAutoRepeatAWT.java.

Here is the call graph for this function:

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