Giter Site home page Giter Site logo

calexil / fightstickdisplay Goto Github PK

View Code? Open in Web Editor NEW
35.0 5.0 2.0 6.92 MB

A simple program written in python and built on pyglet, used to display fightstick inputs on screen for streaming and testing purposes

License: GNU General Public License v3.0

Python 99.99% Shell 0.01%
gamepad python streaming twitch fighting-game pyglet fightstick-display linux-streaming

fightstickdisplay's People

Contributors

aysingoro avatar benmoran56 avatar calexil avatar megamissingno avatar pyup-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

fightstickdisplay's Issues

fightstick display crashes when more than one controller is plugged in

jd@Marzipan:~/FightstickDisplay$ python3 fightstick.py
Added additional controller mappings from 'gamecontrollerdb.txt'
Traceback (most recent call last):
File "fightstick.py", line 237, in
set_scene()
File "fightstick.py", line 228, in set_scene
scene = MainScene(window, controller)
File "fightstick.py", line 126, in init
self.fightstick.open()
File "/home/jd/FightstickDisplay/pyglet/input/evdev.py", line 398, in open
self._rumble_strong = self.device.ff_create_effect(0, 0, 0)
File "/home/jd/FightstickDisplay/pyglet/input/evdev.py", line 352, in ff_create_effect
fcntl.ioctl(self._fileno, 0x40304580, view, True)
OSError: [Errno 28] No space left on device

Add Windows build

Trying to figure out how to do this with py2exe no luck so far, but its on the timeline for version 2.0 release

Different color buttons

We're using the same sprite for all buttons. Would it be nicer looking to have different colors?

config_scene: app crashes when launched from fightstick.sh script, trace below

'/home/jd/FightstickDisplay-config_scene/fightstick.sh'
~$ Added additional controller mappings from 'gamecontrollerdb.txt'
Traceback (most recent call last):
File "/usr/lib/python3.6/configparser.py", line 846, in items
d.update(self._sections[section])
KeyError: 'layout'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "fightstick.py", line 329, in
load_configuration()
File "fightstick.py", line 80, in load_configuration
for key, value in config.items('layout'):
File "/usr/lib/python3.6/configparser.py", line 849, in items
raise NoSectionError(section)
configparser.NoSectionError: No section: 'layout'

Lets consolidate the launcher scripts

Currently there are seperate scripts for x360 and ps4, as well as an experimental universal one.
(Only the experimental universal script supports theme layout changes at the moment).

We should configure the buttons layout in fightstick.py. After that, it should work universally on all sticks, and avoid the need for two seperate launchers.

Initial Update

Hi ๐Ÿ‘Š

This is my first visit to this fine repo, but it seems you have been working hard to keep all dependencies updated so far.

Once you have closed this issue, I'll create separate pull requests for every update as soon as I find one.

That's it for now!

Happy merging! ๐Ÿค–

Create a test env for appveyor to run the program

language: python
dist: xenial
sudo: true
python:

  • "3.7"
  • "3.8"
    env:
  • DISPLAY=:99.0
    services:
  • xvfb
    before_install:
  • sudo touch /dev/input/js0

dependencies

install:

  • pip install pyglet configparser

run tests

script:

  • python3 fightstick.py &disown

Initial Update

Hi ๐Ÿ‘Š

This is my first visit to this fine repo, but it seems you have been working hard to keep all dependencies updated so far.

Once you have closed this issue, I'll create seperate pull requests for every update as soon as I find one.

That's it for now!

Happy merging! ๐Ÿค–

config_scene: program crashes when deadzone slider is moved, trace below

~$ python3 '/home/jd/FightstickDisplay-config_scene/fightstick.py' -d
No theme/layout.ini file found. Falling back to default.
Pressed Button: guide
Traceback (most recent call last):
File "/home/jd/FightstickDisplay-config_scene/fightstick.py", line 339, in
pyglet.app.run()
File "/home/jd/FightstickDisplay-config_scene/pyglet/app/init.py", line 107, in run
event_loop.run(interval)
File "/home/jd/FightstickDisplay-config_scene/pyglet/app/base.py", line 185, in run
platform_event_loop.step(timeout)
File "/home/jd/FightstickDisplay-config_scene/pyglet/app/xlib.py", line 120, in step
device.select()
File "/home/jd/FightstickDisplay-config_scene/pyglet/canvas/xlib.py", line 202, in select
dispatch(e)
File "/home/jd/FightstickDisplay-config_scene/pyglet/window/xlib/init.py", line 973, in dispatch_platform_event_view
event_handler(e)
File "/home/jd/FightstickDisplay-config_scene/pyglet/window/xlib/init.py", line 1465, in _event_button
self.dispatch_event('on_mouse_press', x, y, button, modifiers)
File "/home/jd/FightstickDisplay-config_scene/pyglet/window/init.py", line 1329, in dispatch_event
super().dispatch_event(*args)
File "/home/jd/FightstickDisplay-config_scene/pyglet/event.py", line 415, in dispatch_event
if handler(*args):
File "/home/jd/FightstickDisplay-config_scene/pyglet/gui/widgets.py", line 374, in on_mouse_press
self._update_knob(x)
File "/home/jd/FightstickDisplay-config_scene/pyglet/gui/widgets.py", line 367, in _update_knob
self.dispatch_event('on_change', self._value)
File "/home/jd/FightstickDisplay-config_scene/pyglet/event.py", line 415, in dispatch_event
if handler(*args):
File "/home/jd/FightstickDisplay-config_scene/fightstick.py", line 155, in _stick_slider_handler
config.set('deadzones', 'stick', str(scaled_value))
File "/usr/lib/python3.6/configparser.py", line 1193, in set
super().set(section, option, value)
File "/usr/lib/python3.6/configparser.py", line 901, in set
raise NoSectionError(section) from None
configparser.NoSectionError: No section: 'deadzones'

Initial Update

Hi ๐Ÿ‘Š

This is my first visit to this fine repo, but it seems you have been working hard to keep all dependencies updated so far.

Once you have closed this issue, I'll create seperate pull requests for every update as soon as I find one.

That's it for now!

Happy merging! ๐Ÿค–

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.