Skip to content

Commit cf63db3

Browse files
committed
Initial commit.
0 parents  commit cf63db3

24 files changed

+1372
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
main.py
2+
*.pyc

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Yusuf Rençber
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include sdl2/*
2+
include sdl2/bin/*

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# PySDL3
2+
PySDL3 is a pure Python wrapper around the SDL3 library.
3+
4+
## Getting Started
5+
Just run the following command in a terminal, binaries are included!
6+
```
7+
pip instal --upgrade PySDL3
8+
```

sdl3/SDL.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
from .SDL_init import *
2+
from .SDL_timer import *
3+
from .SDL_video import *
4+
from .SDL_pen import *
5+
from .SDL_touch import *
6+
from .SDL_audio import *
7+
from .SDL_joystick import *
8+
from .SDL_camera import *
9+
from .SDL_power import *
10+
from .SDL_mouse import *
11+
from .SDL_keyboard import *
12+
from .SDL_keycode import *
13+
from .SDL_scancode import *
14+
from .SDL_sensor import *
15+
from .SDL_events import *

sdl3/SDL_audio.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from .__init__ import ctypes, SDL_FUNC
2+
3+
SDL_AudioDeviceID = ctypes.c_uint32

sdl3/SDL_camera.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from .__init__ import ctypes, SDL_FUNC
2+
3+
SDL_CameraID = ctypes.c_uint32

0 commit comments

Comments
 (0)