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

Classes

class  CodeEvent
 
class  CodeSeg
 

Static Public Member Functions

static void dumpKeyEvents (final List< EventObject > keyEvents)
 
static boolean validateKeyCodes (final CodeSeg[] codeSegments, final List< List< EventObject > > keyEventsList, final boolean verbose)
 
static boolean validateKeyCodes (final List< CodeEvent > missCodes, final CodeSeg codeSeg, final List< EventObject > keyEvents, final boolean verbose)
 
static void validateKeyEvent (final KeyEvent e, final short eventType, final int modifiers, final short keyCode, final char keyChar)
 
static short getNextKeyEventType (final KeyEvent e)
 
static void validateKeyEventOrder (final List< EventObject > keyEvents)
 
static void validateKeyAdapterStats (final NEWTKeyAdapter keyAdapter, final int expPressedCountSI, final int expReleasedCountSI, final int expPressedCountAR, final int expReleasedCountAR)
 

Static Public Attributes

static final int TIME_OUT = 2000
 
static final int POLL_DIVIDER = 20
 
static final int TIME_SLICE = TIME_OUT / POLL_DIVIDER
 

Detailed Description

Definition at line 39 of file NEWTKeyUtil.java.

Member Function Documentation

◆ dumpKeyEvents()

static void com.jogamp.opengl.test.junit.util.NEWTKeyUtil.dumpKeyEvents ( final List< EventObject >  keyEvents)
static

Definition at line 70 of file NEWTKeyUtil.java.

◆ getNextKeyEventType()

static short com.jogamp.opengl.test.junit.util.NEWTKeyUtil.getNextKeyEventType ( final KeyEvent  e)
static

Definition at line 136 of file NEWTKeyUtil.java.

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

◆ validateKeyAdapterStats()

static void com.jogamp.opengl.test.junit.util.NEWTKeyUtil.validateKeyAdapterStats ( final NEWTKeyAdapter  keyAdapter,
final int  expPressedCountSI,
final int  expReleasedCountSI,
final int  expPressedCountAR,
final int  expReleasedCountAR 
)
static
Parameters
keyAdapter
expPressedCountSInumber of single key press events
expReleasedCountSInumber of single key release events
expPressedCountARnumber of auto-repeat key press events
expReleasedCountARnumber of auto-repeat key release events

Definition at line 171 of file NEWTKeyUtil.java.

Here is the call graph for this function:

◆ validateKeyCodes() [1/2]

static boolean com.jogamp.opengl.test.junit.util.NEWTKeyUtil.validateKeyCodes ( final CodeSeg[]  codeSegments,
final List< List< EventObject > >  keyEventsList,
final boolean  verbose 
)
static

Definition at line 76 of file NEWTKeyUtil.java.

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

◆ validateKeyCodes() [2/2]

static boolean com.jogamp.opengl.test.junit.util.NEWTKeyUtil.validateKeyCodes ( final List< CodeEvent missCodes,
final CodeSeg  codeSeg,
final List< EventObject >  keyEvents,
final boolean  verbose 
)
static

Definition at line 94 of file NEWTKeyUtil.java.

Here is the call graph for this function:

◆ validateKeyEvent()

static void com.jogamp.opengl.test.junit.util.NEWTKeyUtil.validateKeyEvent ( final KeyEvent  e,
final short  eventType,
final int  modifiers,
final short  keyCode,
final char  keyChar 
)
static

Definition at line 121 of file NEWTKeyUtil.java.

Here is the call graph for this function:

◆ validateKeyEventOrder()

static void com.jogamp.opengl.test.junit.util.NEWTKeyUtil.validateKeyEventOrder ( final List< EventObject >  keyEvents)
static

Definition at line 149 of file NEWTKeyUtil.java.

Here is the call graph for this function:

Member Data Documentation

◆ POLL_DIVIDER

final int com.jogamp.opengl.test.junit.util.NEWTKeyUtil.POLL_DIVIDER = 20
static

Definition at line 41 of file NEWTKeyUtil.java.

◆ TIME_OUT

final int com.jogamp.opengl.test.junit.util.NEWTKeyUtil.TIME_OUT = 2000
static

Definition at line 40 of file NEWTKeyUtil.java.

◆ TIME_SLICE

final int com.jogamp.opengl.test.junit.util.NEWTKeyUtil.TIME_SLICE = TIME_OUT / POLL_DIVIDER
static

Definition at line 42 of file NEWTKeyUtil.java.


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