tcod 19.0.2__tar.gz → 19.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tcod-19.0.2 → tcod-19.1.0}/CHANGELOG.md +10 -0
- {tcod-19.0.2 → tcod-19.1.0}/PKG-INFO +1 -1
- {tcod-19.0.2 → tcod-19.1.0}/tcod/sdl/video.py +118 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/version.py +2 -2
- {tcod-19.0.2 → tcod-19.1.0}/tcod.egg-info/PKG-INFO +1 -1
- {tcod-19.0.2 → tcod-19.1.0}/CONTRIBUTING.md +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/LICENSE.txt +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/MANIFEST.in +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/README.rst +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/build_libtcod.py +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/build_sdl.py +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/CHANGELOG.md +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/CMakeLists.txt +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/CONTRIBUTING.md +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/LIBTCOD-CREDITS.txt +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/LICENSE.txt +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/README.md +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/bresenham.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/bresenham_c.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/bsp.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/bsp_c.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/color.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/color.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/config.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/console.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/console.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/console_drawing.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/console_drawing.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/console_etc.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/console_etc.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/console_init.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/console_init.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/console_printing.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/console_printing.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/console_rexpaint.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/console_rexpaint.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/console_types.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/context.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/context.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/context_init.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/context_init.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/context_viewport.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/context_viewport.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/error.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/error.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/fov.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/fov_c.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/fov_circular_raycasting.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/fov_diamond_raycasting.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/fov_permissive2.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/fov_recursive_shadowcasting.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/fov_restrictive.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/fov_symmetric_shadowcast.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/fov_types.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/globals.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/globals.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/heapq.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/heapq.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/heightmap.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/heightmap_c.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/image.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/image_c.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/lex.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/lex_c.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/libtcod.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/libtcod_int.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/list.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/list_c.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/logging.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/logging.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/mersenne.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/mersenne_c.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/mersenne_types.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/mouse.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/mouse_types.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/namegen.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/namegen_c.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/noise.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/noise_c.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/noise_defaults.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/parser.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/parser_c.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/path.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/path_c.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/pathfinder.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/pathfinder.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/pathfinder_frontier.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/pathfinder_frontier.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/portability.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/random.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/random.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/renderer_sdl2.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/renderer_sdl2.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/renderer_xterm.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/renderer_xterm.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/sdl2/console_grid.glslf +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/sdl2/console_grid.glslv +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/sdl2/event.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/sys.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/sys_c.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/sys_sdl_c.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/sys_sdl_img_bmp.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/sys_sdl_img_png.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/tileset.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/tileset.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/tileset_bdf.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/tileset_bdf.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/tileset_fallback.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/tileset_fallback.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/tileset_render.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/tileset_render.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/tileset_truetype.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/tileset_truetype.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/timer.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/tree.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/tree_c.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/txtfield.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/txtfield_c.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/utility.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/version.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/wrappers.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/wrappers.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/zip.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod/zip_c.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/libtcod_c.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/vendor/khrplatform.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/vendor/lodepng.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/vendor/lodepng.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/vendor/stb.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/vendor/stb_ds.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/vendor/stb_truetype.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/vendor/utf8proc/utf8proc.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/vendor/utf8proc/utf8proc.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/vendor/utf8proc/utf8proc_data.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/vendor/zlib/adler32.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/vendor/zlib/compress.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/vendor/zlib/crc32.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/vendor/zlib/crc32.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/vendor/zlib/deflate.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/vendor/zlib/deflate.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/vendor/zlib/gzclose.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/vendor/zlib/gzguts.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/vendor/zlib/gzlib.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/vendor/zlib/gzread.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/vendor/zlib/gzwrite.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/vendor/zlib/infback.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/vendor/zlib/inffast.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/vendor/zlib/inffast.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/vendor/zlib/inffixed.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/vendor/zlib/inflate.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/vendor/zlib/inflate.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/vendor/zlib/inftrees.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/vendor/zlib/inftrees.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/vendor/zlib/trees.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/vendor/zlib/trees.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/vendor/zlib/uncompr.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/vendor/zlib/zconf.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/vendor/zlib/zlib.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/vendor/zlib/zutil.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcod/src/vendor/zlib/zutil.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/libtcodpy.py +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/pyproject.toml +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/requirements.txt +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/setup.cfg +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/setup.py +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/__init__.py +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/__pyinstaller/__init__.py +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/__pyinstaller/hook-tcod.py +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/_internal.py +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/_libtcod.pyi +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/bsp.py +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/cdef.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/cffi.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/cffi.py +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/color.py +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/console.py +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/constants.py +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/context.py +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/event.py +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/event_constants.py +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/image.py +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/libtcodpy.py +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/los.py +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/map.py +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/noise.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/noise.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/noise.py +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/path.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/path.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/path.py +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/py.typed +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/random.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/random.py +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/render.py +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/sdl/__init__.py +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/sdl/_internal.py +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/sdl/audio.py +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/sdl/constants.py +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/sdl/joystick.py +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/sdl/mouse.py +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/sdl/render.py +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/sdl/sys.py +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/tcod.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/tcod.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/tcod.py +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/tdl.c +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/tdl.h +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod/tileset.py +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod.egg-info/SOURCES.txt +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod.egg-info/dependency_links.txt +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod.egg-info/entry_points.txt +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod.egg-info/requires.txt +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tcod.egg-info/top_level.txt +0 -0
- {tcod-19.0.2 → tcod-19.1.0}/tox.ini +0 -0
|
@@ -6,8 +6,18 @@ This project adheres to [Semantic Versioning](https://semver.org/) since version
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [19.1.0] - 2025-07-12
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- Added text input support to `tcod.sdl.video.Window` which was missing since the SDL3 update.
|
|
14
|
+
After creating a context use `assert context.sdl_window` or `if context.sdl_window:` to verify that an SDL window exists then use `context.sdl_window.start_text_input` to enable text input events.
|
|
15
|
+
Keep in mind that this can open an on-screen keyboard.
|
|
16
|
+
|
|
9
17
|
## [19.0.2] - 2025-07-11
|
|
10
18
|
|
|
19
|
+
Resolve wheel deployment issue.
|
|
20
|
+
|
|
11
21
|
## [19.0.1] - 2025-07-11
|
|
12
22
|
|
|
13
23
|
### Fixed
|
|
@@ -24,7 +24,9 @@ if TYPE_CHECKING:
|
|
|
24
24
|
from numpy.typing import ArrayLike, NDArray
|
|
25
25
|
|
|
26
26
|
__all__ = (
|
|
27
|
+
"Capitalization",
|
|
27
28
|
"FlashOperation",
|
|
29
|
+
"TextInputType",
|
|
28
30
|
"Window",
|
|
29
31
|
"WindowFlags",
|
|
30
32
|
"get_grabbed_window",
|
|
@@ -89,6 +91,56 @@ class FlashOperation(enum.IntEnum):
|
|
|
89
91
|
"""Flash until focus is gained."""
|
|
90
92
|
|
|
91
93
|
|
|
94
|
+
class TextInputType(enum.IntEnum):
|
|
95
|
+
"""SDL input types for text input.
|
|
96
|
+
|
|
97
|
+
.. seealso::
|
|
98
|
+
:any:`Window.start_text_input`
|
|
99
|
+
https://wiki.libsdl.org/SDL3/SDL_TextInputType
|
|
100
|
+
|
|
101
|
+
.. versionadded:: 19.1
|
|
102
|
+
"""
|
|
103
|
+
|
|
104
|
+
TEXT = lib.SDL_TEXTINPUT_TYPE_TEXT
|
|
105
|
+
"""The input is text."""
|
|
106
|
+
TEXT_NAME = lib.SDL_TEXTINPUT_TYPE_TEXT_NAME
|
|
107
|
+
"""The input is a person's name."""
|
|
108
|
+
TEXT_EMAIL = lib.SDL_TEXTINPUT_TYPE_TEXT_EMAIL
|
|
109
|
+
"""The input is an e-mail address."""
|
|
110
|
+
TEXT_USERNAME = lib.SDL_TEXTINPUT_TYPE_TEXT_USERNAME
|
|
111
|
+
"""The input is a username."""
|
|
112
|
+
TEXT_PASSWORD_HIDDEN = lib.SDL_TEXTINPUT_TYPE_TEXT_PASSWORD_HIDDEN
|
|
113
|
+
"""The input is a secure password that is hidden."""
|
|
114
|
+
TEXT_PASSWORD_VISIBLE = lib.SDL_TEXTINPUT_TYPE_TEXT_PASSWORD_VISIBLE
|
|
115
|
+
"""The input is a secure password that is visible."""
|
|
116
|
+
NUMBER = lib.SDL_TEXTINPUT_TYPE_NUMBER
|
|
117
|
+
"""The input is a number."""
|
|
118
|
+
NUMBER_PASSWORD_HIDDEN = lib.SDL_TEXTINPUT_TYPE_NUMBER_PASSWORD_HIDDEN
|
|
119
|
+
"""The input is a secure PIN that is hidden."""
|
|
120
|
+
NUMBER_PASSWORD_VISIBLE = lib.SDL_TEXTINPUT_TYPE_NUMBER_PASSWORD_VISIBLE
|
|
121
|
+
"""The input is a secure PIN that is visible."""
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
class Capitalization(enum.IntEnum):
|
|
125
|
+
"""Text capitalization for text input.
|
|
126
|
+
|
|
127
|
+
.. seealso::
|
|
128
|
+
:any:`Window.start_text_input`
|
|
129
|
+
https://wiki.libsdl.org/SDL3/SDL_Capitalization
|
|
130
|
+
|
|
131
|
+
.. versionadded:: 19.1
|
|
132
|
+
"""
|
|
133
|
+
|
|
134
|
+
NONE = lib.SDL_CAPITALIZE_NONE
|
|
135
|
+
"""No auto-capitalization will be done."""
|
|
136
|
+
SENTENCES = lib.SDL_CAPITALIZE_SENTENCES
|
|
137
|
+
"""The first letter of sentences will be capitalized."""
|
|
138
|
+
WORDS = lib.SDL_CAPITALIZE_WORDS
|
|
139
|
+
"""The first letter of words will be capitalized."""
|
|
140
|
+
LETTERS = lib.SDL_CAPITALIZE_LETTERS
|
|
141
|
+
"""All letters will be capitalized."""
|
|
142
|
+
|
|
143
|
+
|
|
92
144
|
class _TempSurface:
|
|
93
145
|
"""Holds a temporary surface derived from a NumPy array."""
|
|
94
146
|
|
|
@@ -133,6 +185,9 @@ class Window:
|
|
|
133
185
|
return NotImplemented
|
|
134
186
|
return bool(self.p == other.p)
|
|
135
187
|
|
|
188
|
+
def __hash__(self) -> int:
|
|
189
|
+
return hash(self.p)
|
|
190
|
+
|
|
136
191
|
def _as_property_pointer(self) -> Any: # noqa: ANN401
|
|
137
192
|
return self.p
|
|
138
193
|
|
|
@@ -369,6 +424,69 @@ class Window:
|
|
|
369
424
|
def relative_mouse_mode(self, enable: bool, /) -> None:
|
|
370
425
|
_check(lib.SDL_SetWindowRelativeMouseMode(self.p, enable))
|
|
371
426
|
|
|
427
|
+
def start_text_input(
|
|
428
|
+
self,
|
|
429
|
+
*,
|
|
430
|
+
type: TextInputType = TextInputType.TEXT, # noqa: A002
|
|
431
|
+
capitalization: Capitalization | None = None,
|
|
432
|
+
autocorrect: bool = True,
|
|
433
|
+
multiline: bool | None = None,
|
|
434
|
+
android_type: int | None = None,
|
|
435
|
+
) -> None:
|
|
436
|
+
"""Start receiving text input events supporting Unicode. This may open an on-screen keyboard.
|
|
437
|
+
|
|
438
|
+
This method is meant to be paired with :any:`set_text_input_area`.
|
|
439
|
+
|
|
440
|
+
Args:
|
|
441
|
+
type: Type of text being inputted, see :any:`TextInputType`
|
|
442
|
+
capitalization: Capitalization hint, default is based on `type` given, see :any:`Capitalization`.
|
|
443
|
+
autocorrect: Enable auto completion and auto correction.
|
|
444
|
+
multiline: Allow multiple lines of text.
|
|
445
|
+
android_type: Input type for Android, see SDL docs.
|
|
446
|
+
|
|
447
|
+
.. seealso::
|
|
448
|
+
:any:`stop_text_input`
|
|
449
|
+
:any:`set_text_input_area`
|
|
450
|
+
https://wiki.libsdl.org/SDL3/SDL_StartTextInputWithProperties
|
|
451
|
+
|
|
452
|
+
.. versionadded:: 19.1
|
|
453
|
+
"""
|
|
454
|
+
props = Properties()
|
|
455
|
+
props[("SDL_PROP_TEXTINPUT_TYPE_NUMBER", int)] = int(type)
|
|
456
|
+
if capitalization is not None:
|
|
457
|
+
props[("SDL_PROP_TEXTINPUT_CAPITALIZATION_NUMBER", int)] = int(capitalization)
|
|
458
|
+
props[("SDL_PROP_TEXTINPUT_AUTOCORRECT_BOOLEAN", bool)] = autocorrect
|
|
459
|
+
if multiline is not None:
|
|
460
|
+
props[("SDL_PROP_TEXTINPUT_MULTILINE_BOOLEAN", bool)] = multiline
|
|
461
|
+
if android_type is not None:
|
|
462
|
+
props[("SDL_PROP_TEXTINPUT_ANDROID_INPUTTYPE_NUMBER", int)] = int(android_type)
|
|
463
|
+
_check(lib.SDL_StartTextInputWithProperties(self.p, props.p))
|
|
464
|
+
|
|
465
|
+
def set_text_input_area(self, rect: tuple[int, int, int, int], cursor: int) -> None:
|
|
466
|
+
"""Assign the area used for entering Unicode text input.
|
|
467
|
+
|
|
468
|
+
Args:
|
|
469
|
+
rect: `(x, y, width, height)` rectangle used for text input
|
|
470
|
+
cursor: Cursor X position, relative to `rect[0]`
|
|
471
|
+
|
|
472
|
+
.. seealso::
|
|
473
|
+
:any:`start_text_input`
|
|
474
|
+
https://wiki.libsdl.org/SDL3/SDL_SetTextInputArea
|
|
475
|
+
|
|
476
|
+
.. versionadded:: 19.1
|
|
477
|
+
"""
|
|
478
|
+
_check(lib.SDL_SetTextInputArea(self.p, (rect,), cursor))
|
|
479
|
+
|
|
480
|
+
def stop_text_input(self) -> None:
|
|
481
|
+
"""Stop receiving text events for this window and close relevant on-screen keyboards.
|
|
482
|
+
|
|
483
|
+
.. seealso::
|
|
484
|
+
:any:`start_text_input`
|
|
485
|
+
|
|
486
|
+
.. versionadded:: 19.1
|
|
487
|
+
"""
|
|
488
|
+
_check(lib.SDL_StopTextInput(self.p))
|
|
489
|
+
|
|
372
490
|
|
|
373
491
|
def new_window( # noqa: PLR0913
|
|
374
492
|
width: int,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|