JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.opengl.test.junit.util.NEWTKeyAdapter Class Reference
Inheritance diagram for com.jogamp.opengl.test.junit.util.NEWTKeyAdapter:
Collaboration diagram for com.jogamp.opengl.test.junit.util.NEWTKeyAdapter:

Public Member Functions

 NEWTKeyAdapter (final String prefix)
 
synchronized void setVerbose (final boolean v)
 Instance starts in verbose mode, call w/ false to disable verbosity. More...
 
synchronized boolean isPressed ()
 
synchronized int getCount ()
 
synchronized int getConsumedCount ()
 
synchronized int getKeyPressedCount (final boolean autoRepeatOnly)
 
synchronized int getKeyReleasedCount (final boolean autoRepeatOnly)
 
synchronized List< EventObject > copyQueue ()
 
synchronized int getQueueSize ()
 
synchronized void reset ()
 
synchronized void keyPressed (final KeyEvent e)
 A key has been pressed, excluding auto-repeat modifier keys. More...
 
synchronized void keyReleased (final KeyEvent e)
 A key has been released, excluding auto-repeat modifier keys. More...
 
String toString ()
 
void keyPressed (final KeyEvent e)
 A key has been pressed, excluding auto-repeat modifier keys. More...
 
void keyReleased (final KeyEvent e)
 A key has been released, excluding auto-repeat modifier keys. More...
 
void keyPressed (KeyEvent e)
 A key has been pressed, excluding auto-repeat modifier keys. More...
 
void keyReleased (KeyEvent e)
 A key has been released, excluding auto-repeat modifier keys. More...
 
int getKeyPressedCount (boolean autoRepeatOnly)
 
int getKeyReleasedCount (boolean autoRepeatOnly)
 
int getConsumedCount ()
 
int getCount ()
 
boolean isPressed ()
 
List< EventObject > copyQueue ()
 
int getQueueSize ()
 
void reset ()
 
void setVerbose (boolean v)
 Instance starts in verbose mode, call w/ false to disable verbosity. More...
 

Detailed Description

Definition at line 39 of file NEWTKeyAdapter.java.

Constructor & Destructor Documentation

◆ NEWTKeyAdapter()

com.jogamp.opengl.test.junit.util.NEWTKeyAdapter.NEWTKeyAdapter ( final String  prefix)

Definition at line 49 of file NEWTKeyAdapter.java.

Here is the call graph for this function:

Member Function Documentation

◆ copyQueue()

synchronized List< EventObject > com.jogamp.opengl.test.junit.util.NEWTKeyAdapter.copyQueue ( )

Implements com.jogamp.opengl.test.junit.util.InputEventCountAdapter.

Definition at line 76 of file NEWTKeyAdapter.java.

Here is the caller graph for this function:

◆ getConsumedCount()

synchronized int com.jogamp.opengl.test.junit.util.NEWTKeyAdapter.getConsumedCount ( )

◆ getCount()

synchronized int com.jogamp.opengl.test.junit.util.NEWTKeyAdapter.getCount ( )

◆ getKeyPressedCount()

synchronized int com.jogamp.opengl.test.junit.util.NEWTKeyAdapter.getKeyPressedCount ( final boolean  autoRepeatOnly)

Implements com.jogamp.opengl.test.junit.util.KeyEventCountAdapter.

Definition at line 68 of file NEWTKeyAdapter.java.

Here is the caller graph for this function:

◆ getKeyReleasedCount()

synchronized int com.jogamp.opengl.test.junit.util.NEWTKeyAdapter.getKeyReleasedCount ( final boolean  autoRepeatOnly)

Implements com.jogamp.opengl.test.junit.util.KeyEventCountAdapter.

Definition at line 72 of file NEWTKeyAdapter.java.

Here is the caller graph for this function:

◆ getQueueSize()

synchronized int com.jogamp.opengl.test.junit.util.NEWTKeyAdapter.getQueueSize ( )

◆ isPressed()

synchronized boolean com.jogamp.opengl.test.junit.util.NEWTKeyAdapter.isPressed ( )

◆ keyPressed()

synchronized void com.jogamp.opengl.test.junit.util.NEWTKeyAdapter.keyPressed ( final KeyEvent  e)

A key has been pressed, excluding auto-repeat modifier keys.

See KeyEvent.

Reimplemented from com.jogamp.newt.event.KeyAdapter.

Definition at line 94 of file NEWTKeyAdapter.java.

Here is the call graph for this function:

◆ keyReleased()

synchronized void com.jogamp.opengl.test.junit.util.NEWTKeyAdapter.keyReleased ( final KeyEvent  e)

A key has been released, excluding auto-repeat modifier keys.

See KeyEvent.

To simulated the removed keyTyped(KeyEvent e) semantics, simply apply the following constraints upfront and bail out if not matched, i.e.:

 if( !e.isPrintableKey() || e.isAutoRepeat() ) {
     return;
 }

Reimplemented from com.jogamp.newt.event.KeyAdapter.

Definition at line 106 of file NEWTKeyAdapter.java.

Here is the call graph for this function:

◆ reset()

synchronized void com.jogamp.opengl.test.junit.util.NEWTKeyAdapter.reset ( )

Implements com.jogamp.opengl.test.junit.util.EventCountAdapter.

Definition at line 84 of file NEWTKeyAdapter.java.

Here is the caller graph for this function:

◆ setVerbose()

synchronized void com.jogamp.opengl.test.junit.util.NEWTKeyAdapter.setVerbose ( final boolean  v)

Instance starts in verbose mode, call w/ false to disable verbosity.

Implements com.jogamp.opengl.test.junit.util.EventCountAdapter.

Definition at line 54 of file NEWTKeyAdapter.java.

◆ toString()

String com.jogamp.opengl.test.junit.util.NEWTKeyAdapter.toString ( )

Definition at line 121 of file NEWTKeyAdapter.java.


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