Reference

Running dos-like

dos_like.run_in_background(argv=None)

Start dos-like in a background thread and return immediately.

Parameters

argv (Optional[list[str]]) – optional arguments to pass to dos-like. Notably, -w starts in windowed mode.

Once returned, dos_like.dos functions may be called.

Warning

This function cannot be used in macOS, as it does not support calling GUI operations from a background thread.

dos_like.start(main_fn, argv=None)

Start dos-like with a given main function, blocking until it returns.

Parameters
  • main_fn (Callable[[], Optional[int]]) – Run this function in dos-like. Inside this function, dos_like.dos functions may be called.

  • argv (Optional[list[str]]) – optional arguments to pass to dos-like. Notably, -w starts in windowed mode.

Return type

int

Returns

value returned by main_fn

Raises

RuntimeError – if already running

dos_like.stop()

Stop running the background thread started by run_in_background().

Raises

RuntimeError – if not running in the background

The dos-like API

Screen functions

dos_like.dos.getpal(index)

Get a palette entry.

Parameters

index (int) – palette index in 0..255

Return type

RGB

Returns

color at that index

dos_like.dos.screenbuffer()

Get the screen buffer.

Return type

buffer

Returns

screen buffer of pixels if graphics mode, or (character, color) pairs if text mode, in row-major order

This will return the on-screen buffer in single buffer mode, or the off-screen buffer double buffer mode.

Once swapbuffers() is called, this buffer will be displayed, and you will need to use its returned buffer as the new off-screen buffer.

dos_like.dos.screenheight()

Get the current screen height.

Return type

int

Returns

height in characters (if text mode) or pixels (if graphics mode)

dos_like.dos.screenwidth()

Get the current screen width.

Return type

int

Returns

width in characters (if text mode) or pixels (if graphics mode)

dos_like.dos.setdoublebuffer(enabled)

Enable or disable double buffer mode.

Parameters

enabled (bool) – new double buffer mode

When enabled, updates to the screen buffer do not appear on screen until swapbuffers() is called.

dos_like.dos.setpal(index, r, g=None, b=None)

Set a palette entry.

May be called with a single RGB or 3-tuple argument, or 3 int arguments.

Parameters
dos_like.dos.setvideomode(mode)

Set the video mode.

Parameters

mode (VideoMode) – new video mode

dos_like.dos.shuttingdown()

Check if the user has requested to quit by closing the window.

Return type

bool

Returns

True if the app window is closing

This should be checked periodically. When it returns True, the main function should return.

dos_like.dos.swapbuffers()

In double buffer mode, swap the off-screen buffer with the on-screen buffer.

Return type

buffer

Returns

the new off-screen buffer

dos_like.dos.waitvbl()

Wait for the next vertical blanking interval (screen refresh).

Text mode functions

dos_like.dos.clrscr()

Clear the screen (text mode only).

Fill the screen with the space character (b'\x20') with the current text and background color.

For graphics mode, see clearscreen().

dos_like.dos.cputs(string)

Display text and advance the cursor (text mode only).

Parameters

string (Union[bytes, str, PathLike]) – text to put to the screen

If the text would extend beyond the current line, it will be truncated and the cursor will remain at the end of the line.

In graphics mode, see outtextxy(), wraptextxy(), and centertextxy().

dos_like.dos.cursoff()

Hide the text mode cursor.

dos_like.dos.curson()

Show the text mode cursor.

dos_like.dos.gotoxy(x, y)

Set the cursor position (text mode only).

Parameters
  • x (int) – cursor 𝑥 position, starting at 0

  • y (int) – cursor 𝑦 position, starting at 0

dos_like.dos.textbackground(color)

Change the text background color (text mode only).

Parameters

color (int) – background palette index in 0..15

dos_like.dos.textcolor(color)

Change the text color (text mode only).

Parameters

color (int) – text palette index in 0..15

dos_like.dos.wherex()

Return the current cursor 𝑥 position.

Return type

int

Returns

cursor 𝑥 position

dos_like.dos.wherey()

Return the current cursor 𝑦 position.

Return type

int

Returns

cursor 𝑦 position

Graphics mode functions

dos_like.dos.bar(x, y, w, h)

Draw a filled rectangle.

Parameters
  • x (int) – 𝑥 position of the top-left corner

  • y (int) – 𝑦 position of the top-left corner

  • w (int) – rectangle width

  • h (int) – rectangle height

The palette index set by setcolor() will be used.

dos_like.dos.blit(x, y, source, width, height, srcx, srcy, srcw, srch)

Copy an image buffer to the screen.

Parameters
  • x (int) – destination 𝑥 position

  • y (int) – destination 𝑦 position

  • source (Union[bytearray, memoryview, CData, buffer, bytes]) – source image buffer, e.g. GIF.pixels

  • width (int) – source image width

  • height (int) – source image height

  • srcx (int) – source 𝑥 position in the image

  • srcy (int) – source 𝑦 position in the image

  • srcw (int) – width to copy

  • srch (int) – height to copy

dos_like.dos.boundaryfill(x, y, boundary)

Boundary fill starting at this point.

Parameters
  • x (int) – 𝑥 position of the start point

  • y (int) – 𝑦 position of the start point

  • boundary (int) – boundary color index

Fill out from the start point, setting all pixels with a color index not matching the boundary color.

The palette index set by setcolor() will be used.

dos_like.dos.centertextxy(x, y, text, width)

Draw graphics mode text centered between a start point and width.

Parameters
  • x (int) – 𝑥 position of the start point

  • y (int) – 𝑦 position of the start point

  • text (Union[bytes, str, PathLike]) – text to draw

  • width (int) – centering end point (between 𝑥 and 𝑥 + width)

The font set by settextstyle() will be used.

For text mode, see cputs().

dos_like.dos.circle(x, y, r)

Draw a circle outline.

Parameters
  • x (int) – 𝑥 position of the circle’s center

  • y (int) – 𝑦 position of the circle’s center

  • r (int) – circle radius

The palette index set by setcolor() will be used.

dos_like.dos.clearscreen()

Fill the screen buffer with 0s.

dos_like.dos.drawpoly(points_xy)

Draw a polygon outline.

Parameters

points_xy (Union[list[int], list[tuple[int, int]], bytearray, memoryview, CData, buffer, bytes]) –

The points to draw, in one of these formats:

  • a list of 𝑥, 𝑦 tuples: [(x1, y1), (x2, y2), ...]

  • a flattened list of points: [x1, y1, x2, y2, ...]

  • an int[] buffer

The palette index set by setcolor() will be used.

dos_like.dos.ellipse(x, y, rx, ry)

Draw an ellipse outline.

Parameters
  • x (int) – 𝑥 position of the ellipse’s center

  • y (int) – 𝑦 position of the ellipse’s center

  • rx (int) – 𝑥 radius

  • ry (int) – 𝑦 radius

The palette index set by setcolor() will be used.

dos_like.dos.fillcircle(x, y, r)

Draw a filled circle.

Parameters
  • x (int) – 𝑥 position of the circle’s center

  • y (int) – 𝑦 position of the circle’s center

  • r (int) – circle radius

The palette index set by setcolor() will be used.

dos_like.dos.fillellipse(x, y, rx, ry)

Draw a filled ellipse.

Parameters
  • x (int) – 𝑥 position of the ellipse’s center

  • y (int) – 𝑦 position of the ellipse’s center

  • rx (int) – 𝑥 radius

  • ry (int) – 𝑦 radius

The palette index set by setcolor() will be used.

dos_like.dos.fillpoly(points_xy)

Draw a filled polygon.

Parameters

points_xy (Union[list[int], list[tuple[int, int]], bytearray, memoryview, CData, buffer, bytes]) –

The points to draw, in one of these formats:

  • a list of 𝑥, 𝑦 tuples: [(x1, y1), (x2, y2), ...]

  • a flattened list of points: [x1, y1, x2, y2, ...]

  • an int[] buffer

The palette index set by setcolor() will be used.

dos_like.dos.floodfill(x, y)

Flood fill starting at this point.

Parameters
  • x (int) – 𝑥 position of the start point

  • y (int) – 𝑦 position of the start point

Fill out from the start point, setting all pixels with a color index matching the original color of the start point.

The palette index set by setcolor() will be used.

dos_like.dos.getcolor()

Get the palette index set by setcolor().

Return type

int

Returns

palette index

dos_like.dos.hline(x, y, len, color)

Draw a horizontal line from left to right.

Parameters
  • x (int) – starting 𝑥 position

  • y (int) – starting 𝑦 position

  • len (int) – total length in pixels

  • color (int) – palette index

dos_like.dos.installuserfont(filename)

Install a font generated by the pixelfont library used by dos-like.

Parameters

filename (Union[bytes, str, PathLike]) – filesystem path of the font to load

Return type

FontHandle

Returns

handle to the installed font

Raises

ValueError – if unable to load the font

dos_like.dos.line(x1, y1, x2, y2)

Draw a line between two points.

Parameters
  • x1 (int) – 𝑥 position of point 1

  • y1 (int) – 𝑦 position of point 1

  • x2 (int) – 𝑥 position of point 2

  • y2 (int) – 𝑦 position of point 2

The palette index set by setcolor() will be used.

dos_like.dos.loadgif(filename)

Load a GIF image.

Parameters

filename (Union[bytes, str, PathLike]) – path to the GIF file

Return type

GIF

Returns

GIF image

Raises

ValueError – if unable to load image

dos_like.dos.maskblit(x, y, source, width, height, srcx, srcy, srcw, srch, colorkey)

Copy an image buffer to the screen using 1 color as transparent.

Parameters
  • x (int) – destination 𝑥 position

  • y (int) – destination 𝑦 position

  • source (Union[bytearray, memoryview, CData, buffer, bytes]) – source image buffer, e.g. GIF.pixels

  • width (int) – source image width

  • height (int) – source image height

  • srcx (int) – source 𝑥 position in the image

  • srcy (int) – source 𝑦 position in the image

  • srcw (int) – width to copy

  • srch (int) – height to copy

  • colorkey (int) – palette index to use as transparent

dos_like.dos.outtextxy(x, y, text)

Draw graphics mode text.

Parameters
  • x (int) – 𝑥 position of the start point

  • y (int) – 𝑦 position of the start point

  • text (Union[bytes, str, PathLike]) – text to draw

The font set by settextstyle() will be used.

For text mode, see cputs().

dos_like.dos.putpixel(x, y, color)

Set the pixel value at this position.

Parameters
  • x (int) – screen 𝑥 position

  • y (int) – screen 𝑦 position

  • color (int) – palette index

dos_like.dos.rectangle(x, y, w, h)

Draw a rectangle outline.

Parameters
  • x (int) – 𝑥 position of the top-left corner

  • y (int) – 𝑦 position of the top-left corner

  • w (int) – rectangle width

  • h (int) – rectangle height

The palette index set by setcolor() will be used.

dos_like.dos.resetdrawtarget()

Start drawing to the screen buffer.

Call this to stop drawing to the off-screen buffer set by setdrawtarget().

dos_like.dos.setcolor(color)

Set the palette index for drawing functions that don’t take a color (e.g. circle()).

Parameters

color (int) – palette index

dos_like.dos.setdrawtarget(pixels, width, height)

Start drawing to an off-screen buffer.

Parameters

Future draw calls will update pixels instead of the screen buffer. To resume drawing to the screen, call resetdrawtarget().

dos_like.dos.settextstyle(font, bold=False, italic=False, underline=False)

Set the graphics mode text style.

Parameters
  • font (FontHandle) – font to draw with

  • bold (bool) – enable bold

  • italic (bool) – enable italics

  • underline (bool) – enable underline

This will affect the next calls to outtextxy(), wraptextxy(), and centertextxy().

dos_like.dos.wraptextxy(x, y, text, width)

Draw graphics mode text with word wrap.

Parameters
  • x (int) – 𝑥 position of the start point

  • y (int) – 𝑦 position of the start point

  • text (Union[bytes, str, PathLike]) – text to draw

  • width (int) – wrap to the next line beyond this width

The font set by settextstyle() will be used.

For text mode, see cputs().

Audio functions

dos_like.dos.allnotesoff(channel)

Stop playing all notes on a music channel.

Parameters

channel (int) – music channel number from 0 up to but not including MUSIC_CHANNELS

dos_like.dos.createmus(data)
Load music from an in-memory

MUS (.mus) buffer.

Parameters

data (Union[bytearray, memoryview, CData, buffer, bytes]) – buffer or byte string containing the MUS data

Return type

Music

Returns

loaded MUS music

Raises

ValueError – if unable to load the music data

dos_like.dos.createsound(channels, samplerate, samples)

Create a sound from a sample buffer.

Parameters
  • channels (int) – 1 for mono, 2 for stereo

  • samplerate (int) – sample playback rate in 1000..44,100 Hz

  • samples (Union[list[int], bytearray, memoryview, CData, buffer, bytes]) –

    sample buffer in one of these formats:

    • a list of integers in -32,768..32,767

    • a short[] buffer

Return type

Sound

Returns

new sound

Raises

ValueError – for invalid parameters

Warning

Sound memory is freed when the returned Sound object is garbage collected. Deleting or releasing the last reference to a playing sound may cause issues.

dos_like.dos.installusersoundbank(filename)

Install a sound bank.

Parameters

filename (Union[bytes, str, PathLike]) – filesystem path to a SoundFont (.sf2) or OP2 bank (.op2)

Return type

SoundBankHandle

Returns

handle to the new sound bank

Raises

ValueError – if unable to load the sound bank

dos_like.dos.loadmid(filename)

Load music from a MIDI (.mid) file.

Parameters

filename (Union[bytes, str, PathLike]) – filesystem path of the MIDI to load

Return type

Music

Returns

loaded MIDI music

Raises

ValueError – if unable to load the music file

dos_like.dos.loadmod(filename)

Load music from a module (.mod) file.

Parameters

filename (Union[bytes, str, PathLike]) – filesystem path of the MOD to load

Return type

Music

Returns

loaded MOD music

Raises

ValueError – if unable to load the music file

dos_like.dos.loadmus(filename)

Load music from a MUS (.mus) file.

Parameters

filename (Union[bytes, str, PathLike]) – filesystem path of the MUS to load

Return type

Music

Returns

loaded MUS music

Raises

ValueError – if unable to load the music file

dos_like.dos.loadopb(filename)

Load music from an OPBinaryLib (.opb) file.

Parameters

filename (Union[bytes, str, PathLike]) – filesystem path of the OPB to load

Return type

Music

Returns

loaded OPB music

Raises

ValueError – if unable to load the music file

dos_like.dos.loadwav(filename)

Load a .wav sound file.

Parameters

filename (Union[bytes, str, PathLike]) – filesystem path of the WAV to load

Return type

Sound

Returns

new sound

Raises

ValueError – if unable to load the sound

Warning

Sound memory is freed when the returned Sound object is garbage collected. Deleting or releasing the last reference to a playing sound may cause issues.

dos_like.dos.musicplaying()

Check if music is currently playing.

Return type

bool

Returns

True if music is playing, False otherwise

Music playback can be controlled with playmusic() and stopmusic().

dos_like.dos.musicvolume(volume)

Set the music playback volume.

Parameters

volume (int) – volume level in 0..255

dos_like.dos.noteoff(channel, note)

Stop playing a note on a music channel.

Parameters
  • channel (int) – music channel number from 0 up to but not including MUSIC_CHANNELS

  • note (int) – MIDI note number in 0..127

If invalid parameters are given, the function call will be ignored.

For a chart of MIDI note numbers, see http://www.phys.unsw.edu.au/jw/notes.html

dos_like.dos.noteon(channel, note, velocity)

Play a note on a music channel.

Parameters
  • channel (int) – music channel number from 0 up to but not including MUSIC_CHANNELS

  • note (int) – MIDI note number in 0..127

  • velocity (int) – note velocity in 0..127

If invalid parameters are given, the function call will be ignored.

For a chart of MIDI note numbers, see http://www.phys.unsw.edu.au/jw/notes.html

dos_like.dos.playmusic(music, loop=False, volume=255)

Start playing music.

Parameters
  • music (Music) – music to play

  • loop (bool) – whether the music should loop

  • volume (int) – volume level in 0..255

The music may be stopped with stopmusic().

dos_like.dos.playsound(channel, sound, loop=False, volume=255)

Play a sound.

Parameters
  • channel (int) – sound channel number from 0 up to but not including SOUND_CHANNELS

  • sound (Sound) – sound to play

  • loop (bool) – whether the sound should loop

  • volume (int) – volume level in 0..255

Sounds may be loaded with loadwav() or created from a buffer with createsound().

The sound may be stopped with stopsound().

dos_like.dos.setinstrument(channel, instrument)

Set the instrument number for a music channel.

Parameters
  • channel (int) – music channel number from 0 up to but not including MUSIC_CHANNELS

  • instrument (int) – instrument number in 0..127

dos_like.dos.setsoundbank(soundbank)

Set the current sound bank.

Parameters

soundbank (SoundBankHandle) – handle to an installed sound bank

The sound bank will be used by music functions like noteon() and playmusic().

dos_like.dos.setsoundmode(mode)

Set the sound playback mode.

Parameters

mode (SoundMode) – new sound mode

dos_like.dos.soundplaying(channel)

Check if sound is playing on a channel.

Parameters

channel (int) – sound channel number from 0 up to but not including SOUND_CHANNELS

Return type

bool

Returns

True if sound is playing, False otherwise

Sound can be played with playsound() and stopped with stopsound().

dos_like.dos.soundvolume(channel, left, right)

Set the sound volume for a channel.

Parameters
  • channel (int) – sound channel number from 0 up to but not including SOUND_CHANNELS

  • left (int) – left volume level in 0..255

  • right (int) – right volume level in 0..255

dos_like.dos.stopmusic()

Stop playing music that was started by playmusic().

dos_like.dos.stopsound(channel)

Stop the sound playing on a channel.

Parameters

channel (int) – sound channel number from 0 up to but not including SOUND_CHANNELS

This will stop a sound that was played by playsound().

Input functions

dos_like.dos.keystate(key)

Check if a key is pressed, by code.

Parameters

key (KeyCode) – key code to check

Return type

bool

Returns

True if pressed, False otherwise

dos_like.dos.mouserelx()

Get the last relative mouse 𝑥 direction.

Return type

int

Returns

mouse movement in the 𝑥 direction relative to the position of the last mouse input event, may be positive or negative

dos_like.dos.mouserely()

Get the last relative mouse 𝑦 direction.

Return type

int

Returns

mouse movement in the 𝑦 direction relative to the position of the last mouse input event, may be positive or negative

dos_like.dos.mousex()

Get the current mouse 𝑥 position.

Return type

int

Returns

mouse 𝑥 position

dos_like.dos.mousey()

Get the current mouse 𝑦 position.

Return type

int

Returns

mouse 𝑦 position

dos_like.dos.readchars()

Get the characters typed since the last call to readchars().

Return type

str

Returns

string of characters, may be empty if no characters were typed since the last call.

dos_like.dos.readkeys()

Get the key codes received since the last call to readkeys().

Return type

list[KeyCode]

Returns

list of KeyCode values, may be empty if no keys were pressed or released since the last call.

The returned key codes may be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise, indicates a key has been pressed.

Utilities

dos_like.dos.new_buffer(data=None, size=None)

Allocate a new buffer to pass to dos-like functions that accept one.

Parameters
  • data (Optional[bytes]) – data to fill the buffer with, or use None and size

  • size (Optional[int]) – if data is None, allocate a buffer of this size in bytes

Return type

buffer

Returns

new buffer

Types

class dos_like.dos.buffer

ffi.buffer(cdata[, byte_size]): Return a read-write buffer object that references the raw C data pointed to by the given ‘cdata’. The ‘cdata’ must be a pointer or an array. Can be passed to functions expecting a buffer, or directly manipulated with:

buf[:] get a copy of it in a regular string, or buf[idx] as a single character buf[:] = … buf[idx] = … change the content

class dos_like.dos.GIF(filename, width, height, palette, pixels, _pixels_ptr)

GIF image.

filename: str

GIF filename

height: int

Image height in pixels

palette: list[dos_like.dos.RGB]

Image color map

pixels: buffer

Image pixels in row-major order. Values are indices of palette.

width: int

Image width in pixels

class dos_like.dos.Music(filename, _music_ptr)

Loaded music.

filename: str | None

Original filename, if loaded from disk.

class dos_like.dos.RGB(r, g, b)

Red, green, and blue color tuple

r

Red channel, valid values 0..63

g

Green channel, valid values 0..63

b

Blue channel, valid values 0..63

class dos_like.dos.Sound(filename, _sound_ptr)

Loaded sound.

filename: str | None

Original filename, if loaded from disk.

Constants

dos_like.dos.MUSIC_CHANNELS = 16

Maximum number of channels for music notes.

dos_like.dos.SOUND_CHANNELS = 16

Maximum number of channels for sounds.

Video Modes

class dos_like.dos.VideoMode(value)

Enumeration of text and graphics modes.

dos_like.dos.videomode_40x25_8x8: VideoMode = VideoMode.40x25_8x8

40x25 text mode with 8x8 characters.

dos_like.dos.videomode_40x25_9x16: VideoMode = VideoMode.40x25_9x16

40x25 text mode with 9x16 characters.

dos_like.dos.videomode_80x25_8x16: VideoMode = VideoMode.80x25_8x16

80x25 text mode with 8x16 characters.

dos_like.dos.videomode_80x25_8x8: VideoMode = VideoMode.80x25_8x8

80x25 text mode with 8x8 characters.

dos_like.dos.videomode_80x25_9x16: VideoMode = VideoMode.80x25_9x16

80x25 text mode with 9x16 characters.

dos_like.dos.videomode_80x43_8x8: VideoMode = VideoMode.80x43_8x8

80x43 text mode with 8x8 characters.

dos_like.dos.videomode_80x50_8x8: VideoMode = VideoMode.80x50_8x8

80x50 text mode with 8x8 characters.

dos_like.dos.videomode_320x200: VideoMode = VideoMode.320x200

320x200 graphics mode.

dos_like.dos.videomode_320x240: VideoMode = VideoMode.320x240

320x240 graphics mode.

dos_like.dos.videomode_320x400: VideoMode = VideoMode.320x400

320x400 graphics mode.

dos_like.dos.videomode_640x200: VideoMode = VideoMode.640x200

640x200 graphics mode.

dos_like.dos.videomode_640x350: VideoMode = VideoMode.640x350

640x350 graphics mode.

dos_like.dos.videomode_640x400: VideoMode = VideoMode.640x400

640x400 graphics mode.

dos_like.dos.videomode_640x480: VideoMode = VideoMode.640x480

640x480 graphics mode.

Fonts

class dos_like.dos.FontHandle

Handle to an installed font.

dos_like.dos.DEFAULT_FONT_8X8: FontHandle = 1

8x8 font

dos_like.dos.DEFAULT_FONT_8X16: FontHandle = 2

8x16 font

dos_like.dos.DEFAULT_FONT_9X16: FontHandle = 3

9x16 font

Sound Banks

class dos_like.dos.SoundBankHandle

Handle to an installed sound bank.

dos_like.dos.DEFAULT_SOUNDBANK_AWE32: SoundBankHandle = 1

Sound Blaster AWE32 sound bank.

dos_like.dos.DEFAULT_SOUNDBANK_SB16: SoundBankHandle = 2

Sound Blaster 16 sound bank.

Sound Modes

class dos_like.dos.SoundMode(value)

Enumeration of sound modes.

dos_like.dos.soundmode_8bit_mono_5000: SoundMode = SoundMode.8bit_mono_5000

8-bit, 1 channel, 5,000 Hz sound mode

dos_like.dos.soundmode_8bit_mono_8000: SoundMode = SoundMode.8bit_mono_8000

8-bit, 1 channel, 8,000 Hz sound mode

dos_like.dos.soundmode_8bit_mono_11025: SoundMode = SoundMode.8bit_mono_11025

8-bit, 1 channel, 11,025 Hz sound mode

dos_like.dos.soundmode_8bit_mono_16000: SoundMode = SoundMode.8bit_mono_16000

8-bit, 1 channel, 16,000 Hz sound mode

dos_like.dos.soundmode_8bit_mono_22050: SoundMode = SoundMode.8bit_mono_22050

8-bit, 1 channel, 22,050 Hz sound mode

dos_like.dos.soundmode_8bit_mono_32000: SoundMode = SoundMode.8bit_mono_32000

8-bit, 1 channel, 32,000 Hz sound mode

dos_like.dos.soundmode_8bit_mono_44100: SoundMode = SoundMode.8bit_mono_44100

8-bit, 1 channel, 44,100 Hz sound mode

dos_like.dos.soundmode_16bit_mono_5000: SoundMode = SoundMode.16bit_mono_5000

16-bit, 1 channel, 5,000 Hz sound mode

dos_like.dos.soundmode_16bit_mono_8000: SoundMode = SoundMode.16bit_mono_8000

16-bit, 1 channel, 8,000 Hz sound mode

dos_like.dos.soundmode_16bit_mono_11025: SoundMode = SoundMode.16bit_mono_11025

16-bit, 1 channel, 11,025 Hz sound mode

dos_like.dos.soundmode_16bit_mono_16000: SoundMode = SoundMode.16bit_mono_16000

16-bit, 1 channel, 16,000 Hz sound mode

dos_like.dos.soundmode_16bit_mono_22050: SoundMode = SoundMode.16bit_mono_22050

16-bit, 1 channel, 22,050 Hz sound mode

dos_like.dos.soundmode_16bit_mono_32000: SoundMode = SoundMode.16bit_mono_32000

16-bit, 1 channel, 32,000 Hz sound mode

dos_like.dos.soundmode_16bit_mono_44100: SoundMode = SoundMode.16bit_mono_44100

16-bit, 1 channel, 44,100 Hz sound mode

dos_like.dos.soundmode_8bit_stereo_5000: SoundMode = SoundMode.8bit_stereo_5000

8-bit, 2 channel, 5,000 Hz sound mode

dos_like.dos.soundmode_8bit_stereo_8000: SoundMode = SoundMode.8bit_stereo_8000

8-bit, 2 channel, 8,000 Hz sound mode

dos_like.dos.soundmode_8bit_stereo_11025: SoundMode = SoundMode.8bit_stereo_11025

8-bit, 2 channel, 11,025 Hz sound mode

dos_like.dos.soundmode_8bit_stereo_16000: SoundMode = SoundMode.8bit_stereo_16000

8-bit, 2 channel, 16,000 Hz sound mode

dos_like.dos.soundmode_8bit_stereo_22050: SoundMode = SoundMode.8bit_stereo_22050

8-bit, 2 channel, 22,050 Hz sound mode

dos_like.dos.soundmode_8bit_stereo_32000: SoundMode = SoundMode.8bit_stereo_32000

8-bit, 2 channel, 32,000 Hz sound mode

dos_like.dos.soundmode_8bit_stereo_44100: SoundMode = SoundMode.8bit_stereo_44100

8-bit, 2 channel, 44,100 Hz sound mode

dos_like.dos.soundmode_16bit_stereo_5000: SoundMode = SoundMode.16bit_stereo_5000

16-bit, 2 channel, 5,000 Hz sound mode

dos_like.dos.soundmode_16bit_stereo_8000: SoundMode = SoundMode.16bit_stereo_8000

16-bit, 2 channel, 8,000 Hz sound mode

dos_like.dos.soundmode_16bit_stereo_11025: SoundMode = SoundMode.16bit_stereo_11025

16-bit, 2 channel, 11,025 Hz sound mode

dos_like.dos.soundmode_16bit_stereo_16000: SoundMode = SoundMode.16bit_stereo_16000

16-bit, 2 channel, 16,000 Hz sound mode

dos_like.dos.soundmode_16bit_stereo_22050: SoundMode = SoundMode.16bit_stereo_22050

16-bit, 2 channel, 22,050 Hz sound mode

dos_like.dos.soundmode_16bit_stereo_32000: SoundMode = SoundMode.16bit_stereo_32000

16-bit, 2 channel, 32,000 Hz sound mode

dos_like.dos.soundmode_16bit_stereo_44100: SoundMode = SoundMode.16bit_stereo_44100

16-bit, 2 channel, 44,100 Hz soundmode

Key Codes

class dos_like.dos.KeyCode(value)

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_MODIFIER_RELEASED: KeyCode = KeyCode.MODIFIER_RELEASED

or’d with a KeyCode to indicate a key has been released.

dos_like.dos.KEY_INVALID: KeyCode = KeyCode.INVALID

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_LBUTTON: KeyCode = KeyCode.LBUTTON

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_RBUTTON: KeyCode = KeyCode.RBUTTON

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_CANCEL: KeyCode = KeyCode.CANCEL

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_MBUTTON: KeyCode = KeyCode.MBUTTON

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_XBUTTON1: KeyCode = KeyCode.XBUTTON1

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_XBUTTON2: KeyCode = KeyCode.XBUTTON2

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_BACK: KeyCode = KeyCode.BACK

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_TAB: KeyCode = KeyCode.TAB

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_CLEAR: KeyCode = KeyCode.CLEAR

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_RETURN: KeyCode = KeyCode.RETURN

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_SHIFT: KeyCode = KeyCode.SHIFT

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_CONTROL: KeyCode = KeyCode.CONTROL

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_MENU: KeyCode = KeyCode.MENU

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_PAUSE: KeyCode = KeyCode.PAUSE

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_CAPITAL: KeyCode = KeyCode.CAPITAL

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_KANA: KeyCode = KeyCode.HANGUL

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_HANGUL: KeyCode = KeyCode.HANGUL

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_JUNJA: KeyCode = KeyCode.JUNJA

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_FINAL: KeyCode = KeyCode.FINAL

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_HANJA: KeyCode = KeyCode.HANJA

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_KANJI = KeyCode.HANJA

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_ESCAPE: KeyCode = KeyCode.ESCAPE

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_CONVERT: KeyCode = KeyCode.CONVERT

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_NONCONVERT: KeyCode = KeyCode.NONCONVERT

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_ACCEPT: KeyCode = KeyCode.ACCEPT

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_MODECHANGE: KeyCode = KeyCode.MODECHANGE

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_SPACE: KeyCode = KeyCode.SPACE

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_PRIOR: KeyCode = KeyCode.PRIOR

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_NEXT: KeyCode = KeyCode.NEXT

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_END: KeyCode = KeyCode.END

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_HOME: KeyCode = KeyCode.HOME

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_LEFT: KeyCode = KeyCode.LEFT

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_UP: KeyCode = KeyCode.UP

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_RIGHT: KeyCode = KeyCode.RIGHT

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_DOWN: KeyCode = KeyCode.DOWN

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_SELECT: KeyCode = KeyCode.SELECT

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_PRINT: KeyCode = KeyCode.PRINT

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_EXEC: KeyCode = KeyCode.EXEC

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_SNAPSHOT: KeyCode = KeyCode.SNAPSHOT

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_INSERT: KeyCode = KeyCode.INSERT

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_DELETE: KeyCode = KeyCode.DELETE

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_HELP: KeyCode = KeyCode.HELP

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_0: KeyCode = KeyCode.0

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_1: KeyCode = KeyCode.1

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_2: KeyCode = KeyCode.2

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_3: KeyCode = KeyCode.3

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_4: KeyCode = KeyCode.4

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_5: KeyCode = KeyCode.5

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_6: KeyCode = KeyCode.6

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_7: KeyCode = KeyCode.7

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_8: KeyCode = KeyCode.8

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_9: KeyCode = KeyCode.9

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_A: KeyCode = KeyCode.A

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_B: KeyCode = KeyCode.B

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_C: KeyCode = KeyCode.C

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_D: KeyCode = KeyCode.D

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_E: KeyCode = KeyCode.E

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_F: KeyCode = KeyCode.F

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_G: KeyCode = KeyCode.G

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_H: KeyCode = KeyCode.H

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_I: KeyCode = KeyCode.I

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_J: KeyCode = KeyCode.J

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_K: KeyCode = KeyCode.K

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_L: KeyCode = KeyCode.L

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_M: KeyCode = KeyCode.M

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_N: KeyCode = KeyCode.N

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_O: KeyCode = KeyCode.O

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_P: KeyCode = KeyCode.P

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_Q: KeyCode = KeyCode.Q

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_R: KeyCode = KeyCode.R

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_S: KeyCode = KeyCode.S

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_T: KeyCode = KeyCode.T

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_U: KeyCode = KeyCode.U

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_V: KeyCode = KeyCode.V

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_W: KeyCode = KeyCode.W

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_X: KeyCode = KeyCode.X

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_Y: KeyCode = KeyCode.Y

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_Z: KeyCode = KeyCode.Z

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_LWIN: KeyCode = KeyCode.LWIN

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_RWIN: KeyCode = KeyCode.RWIN

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_APPS: KeyCode = KeyCode.APPS

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_SLEEP: KeyCode = KeyCode.SLEEP

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_NUMPAD0: KeyCode = KeyCode.NUMPAD0

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_NUMPAD1: KeyCode = KeyCode.NUMPAD1

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_NUMPAD2: KeyCode = KeyCode.NUMPAD2

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_NUMPAD3: KeyCode = KeyCode.NUMPAD3

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_NUMPAD4: KeyCode = KeyCode.NUMPAD4

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_NUMPAD5: KeyCode = KeyCode.NUMPAD5

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_NUMPAD6: KeyCode = KeyCode.NUMPAD6

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_NUMPAD7: KeyCode = KeyCode.NUMPAD7

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_NUMPAD8: KeyCode = KeyCode.NUMPAD8

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_NUMPAD9: KeyCode = KeyCode.NUMPAD9

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_MULTIPLY: KeyCode = KeyCode.MULTIPLY

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_ADD: KeyCode = KeyCode.ADD

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_SEPARATOR: KeyCode = KeyCode.SEPARATOR

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_SUBTRACT: KeyCode = KeyCode.SUBTRACT

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_DECIMAL: KeyCode = KeyCode.DECIMAL

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_DIVIDE: KeyCode = KeyCode.DIVIDE

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_F1: KeyCode = KeyCode.F1

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_F2: KeyCode = KeyCode.F2

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_F3: KeyCode = KeyCode.F3

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_F4: KeyCode = KeyCode.F4

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_F5: KeyCode = KeyCode.F5

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_F6: KeyCode = KeyCode.F6

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_F7: KeyCode = KeyCode.F7

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_F8: KeyCode = KeyCode.F8

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_F9: KeyCode = KeyCode.F9

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_F10: KeyCode = KeyCode.F10

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_F11: KeyCode = KeyCode.F11

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_F12: KeyCode = KeyCode.F12

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_F13: KeyCode = KeyCode.F13

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_F14: KeyCode = KeyCode.F14

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_F15: KeyCode = KeyCode.F15

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_F16: KeyCode = KeyCode.F16

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_F17: KeyCode = KeyCode.F17

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_F18: KeyCode = KeyCode.F18

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_F19: KeyCode = KeyCode.F19

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_F20: KeyCode = KeyCode.F20

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_F21: KeyCode = KeyCode.F21

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_F22: KeyCode = KeyCode.F22

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_F23: KeyCode = KeyCode.F23

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_F24: KeyCode = KeyCode.F24

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_NUMLOCK: KeyCode = KeyCode.NUMLOCK

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_SCROLL: KeyCode = KeyCode.SCROLL

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_LSHIFT: KeyCode = KeyCode.LSHIFT

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_RSHIFT: KeyCode = KeyCode.RSHIFT

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_LCONTROL: KeyCode = KeyCode.LCONTROL

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_RCONTROL: KeyCode = KeyCode.RCONTROL

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_LMENU: KeyCode = KeyCode.LMENU

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_RMENU: KeyCode = KeyCode.RMENU

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_BROWSER_BACK: KeyCode = KeyCode.BROWSER_BACK

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_BROWSER_FORWARD: KeyCode = KeyCode.BROWSER_FORWARD

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_BROWSER_REFRESH: KeyCode = KeyCode.BROWSER_REFRESH

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_BROWSER_STOP: KeyCode = KeyCode.BROWSER_STOP

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_BROWSER_FAVORITES: KeyCode = KeyCode.BROWSER_FAVORITES

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_BROWSER_HOME: KeyCode = KeyCode.BROWSER_HOME

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_VOLUME_MUTE: KeyCode = KeyCode.VOLUME_MUTE

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_VOLUME_DOWN: KeyCode = KeyCode.VOLUME_DOWN

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_VOLUME_UP: KeyCode = KeyCode.VOLUME_UP

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_MEDIA_NEXT_TRACK: KeyCode = KeyCode.MEDIA_NEXT_TRACK

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_MEDIA_PREV_TRACK: KeyCode = KeyCode.MEDIA_PREV_TRACK

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_MEDIA_STOP: KeyCode = KeyCode.MEDIA_STOP

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_MEDIA_PLAY_PAUSE: KeyCode = KeyCode.MEDIA_PLAY_PAUSE

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_LAUNCH_MAIL: KeyCode = KeyCode.LAUNCH_MAIL

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_LAUNCH_MEDIA_SELECT: KeyCode = KeyCode.LAUNCH_MEDIA_SELECT

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_LAUNCH_APP1: KeyCode = KeyCode.LAUNCH_APP1

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_LAUNCH_APP2: KeyCode = KeyCode.LAUNCH_APP2

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_OEM_1: KeyCode = KeyCode.OEM_1

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_OEM_PLUS: KeyCode = KeyCode.OEM_PLUS

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_OEM_COMMA: KeyCode = KeyCode.OEM_COMMA

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_OEM_MINUS: KeyCode = KeyCode.OEM_MINUS

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_OEM_PERIOD: KeyCode = KeyCode.OEM_PERIOD

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_OEM_2: KeyCode = KeyCode.OEM_2

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_OEM_3: KeyCode = KeyCode.OEM_3

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_OEM_4: KeyCode = KeyCode.OEM_4

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_OEM_5: KeyCode = KeyCode.OEM_5

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_OEM_6: KeyCode = KeyCode.OEM_6

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_OEM_7: KeyCode = KeyCode.OEM_7

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_OEM_8: KeyCode = KeyCode.OEM_8

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_OEM_102: KeyCode = KeyCode.OEM_102

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_PROCESSKEY: KeyCode = KeyCode.PROCESSKEY

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_ATTN: KeyCode = KeyCode.ATTN

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_CRSEL: KeyCode = KeyCode.CRSEL

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_EXSEL: KeyCode = KeyCode.EXSEL

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_EREOF: KeyCode = KeyCode.EREOF

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_PLAY: KeyCode = KeyCode.PLAY

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_ZOOM: KeyCode = KeyCode.ZOOM

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_NONAME: KeyCode = KeyCode.NONAME

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_PA1: KeyCode = KeyCode.PA1

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEY_OEM_CLEAR: KeyCode = KeyCode.OEM_CLEAR

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEYCOUNT: KeyCode = KeyCode.KEYCOUNT

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.

dos_like.dos.KEYPADDING: KeyCode = KeyCode.KEYPADDING

Keyboard code.

May be bitwise or’d with KEY_MODIFIER_RELEASED to indicate a key has been released. Otherwise indicates a key has been pressed.