Skip to content

Commit

Permalink
Sync SDL3 header -> wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
SDLWikiBot committed Apr 15, 2024
1 parent b4e1c04 commit de5bb34
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion SDL3/README/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ The following functions have been removed:

## SDL_keycode.h

SDL_Keycode is now an enum instead of Sint32.
The SDL_KeyCode enum values have been changed to defines to more clearly reflect that they are a subset of the possible values of an SDL_Keycode.

The following symbols have been renamed:
* KMOD_ALT => SDL_KMOD_ALT
Expand Down
18 changes: 18 additions & 0 deletions SDL3/SDLK_UNKNOWN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
###### (This is the documentation for SDL3, which is under heavy development and the API is changing! [SDL2](https://wiki.libsdl.org/SDL2/) is the current stable version!)
# SDLK_UNKNOWN

A subset of possible virtual key values.

## Header File

Defined in [SDL_keycode.h](https://github.com/libsdl-org/SDL/blob/main/include/SDL3/SDL_keycode.h), but apps should use `#include <SDL3/SDL.h>`

## Syntax

```c
#define SDLK_UNKNOWN 0
```

----
[CategoryAPI](CategoryAPI), [CategoryAPIMacro](CategoryAPIMacro)

3 changes: 0 additions & 3 deletions SDL3/SDL_Keycode.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ the unmodified character that would be generated by pressing the key, or an
A special exception is the number keys at the top of the keyboard which map
to [SDLK_0](SDLK_0)...[SDLK_9](SDLK_9) on AZERTY layouts.

The list of `SDLK_*` values are in [SDL_KeyCode](SDL_KeyCode), which is an
enum, while [SDL_Keycode](SDL_Keycode) is an integer.

## Version

This datatype is available since SDL 3.0.0.
Expand Down

0 comments on commit de5bb34

Please sign in to comment.