<html><head><title>Samsung Enterprise Portal mySingle</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<style id="mysingle_style" type="text/css">P {
        MARGIN-BOTTOM: 5px; FONT-SIZE: 9pt; FONT-FAMILY: ±¼¸²Ã¼, arial; MARGIN-TOP: 5px
}
TD {
        MARGIN-BOTTOM: 5px; FONT-SIZE: 9pt; FONT-FAMILY: ±¼¸²Ã¼, arial; MARGIN-TOP: 5px
}
LI {
        MARGIN-BOTTOM: 5px; FONT-SIZE: 9pt; FONT-FAMILY: ±¼¸²Ã¼, arial; MARGIN-TOP: 5px
}
BODY {
        FONT-SIZE: 9pt; FONT-FAMILY: ±¼¸²Ã¼, arial; MARGIN: 10px; LINE-HEIGHT: 1.4
}
</style>

<meta http-equiv="X-UA-Compatible" content="IE=5">
<meta http-equiv="X-UA-Compatible" content="IE=5">
<meta name="GENERATOR" content="MSHTML 10.00.9200.17556"></head>
<body>
<p>Dear Peter, thank you for your quick answer and I agree with you. :)</p>
<p>I have one more question below.</p>
<p> </p>
<p>>As for the most desirable way to support joysticks in Wayland - we don't<br>>quite know, it'll depend on developers coming and saying "we need this and<br>>that", then we can start a conversation on what to do. But right now it<br>>seems a logind-like approach to allow an application to open js0 or the<br>>event node is quite sufficient.</p>
<p>Do you imply that there will be security issues regarding the direct access</p>
<p>of the joystick node by an application ?</p>
<p>Did you mention logind-like approach for another reason ?<br></p>
<p>logind-like approach seems to be good for me, too, from the security point of view.</p>
<p>If the joystick node is able to be opened by any application directly and</p>
<p>(for instance) if a user starts a game application and tries to make any payment</p>
<p>in the game application with a joystick, i think it can make a security issue.</p>
<p>Of course, this is just an example and the payment for games needs to be made outside the game application. :)</p>
<p><br>------- Original Message -------<br>Sender : Peter Hutterer<peter.hutterer@who-t.net> <br>Date   : 2016-03-03 08:42 (GMT+09:00)<br>Title  : Re: Question regarding joystick/gamepad support in wayland<br><br>On Wed, Mar 02, 2016 at 11:11:06PM +0000, ¹Ú¼ºÁø wrote:<br>> Dear all,<br>> I would like to get your opinions regarding joystick/gamepad support in wayland.<br>> What's the desirable way to support joystick/gamepad both in wayland and in linux ?<br>> Plz kindly let me know if there is any previous discussion about this. :)<br>> <br>> Linux supports both joydev(e.g. /dev/input/js0) and evdev(e.g. /dev/input/event0) for joysticks/gamepads.<br>> As far as I know, many games in linux open js node directly within the process itself and read/handle joystick events by itself.<br>> Under Xorg window system, without having X events and X input extension events, why are the games opening joystick nodes directly ?<br>> Are there any reason for doing that ? Are there any performance issues ? Otherwise, is it originated from the lack of X events for joystick?<br>> Lastly, what the most desirable way to support joysticks/gamepads in wayland ?<br><br>couple of things here:<br>* joystick events require relatively little processing, they are mapped to a<br>  function and that's about it. compare that with e.g. touchpads where a lot<br>  of stuff is required before we know whether we should send a motion,<br>  button or scroll event<br>* joysticks do not have a standard set of functionality. they're all buttons<br>  and axes but the layout changes, the functionality differs per device, etc.<br>  this makes it really hard to come up with a generic library that handles<br>  joysticks. and when you do, it'll likely look like evdev anyway<br>* X hasn't really had joystick support, so now you have the inertia of<br>  "everyone is doing it this way already". Couple this with the fact that<br>  joysticks aren't used in the normal UI, they're dedicated devices that<br>  have a different functionality per application.<br><br>As for the most desirable way to support joysticks in Wayland - we don't<br>quite know, it'll depend on developers coming and saying "we need this and<br>that", then we can start a conversation on what to do. But right now it<br>seems a logind-like approach to allow an application to open js0 or the<br>event node is quite sufficient.<br><br>Cheers,<br>   Peter<br>_______________________________________________<br>wayland-devel mailing list<br>wayland-devel@lists.freedesktop.org<br>https://lists.freedesktop.org/mailman/listinfo/wayland-devel<br><p>&nbsp;</p><p>&nbsp;</p></p></body></html><img src='http://ext.samsung.net/mailcheck/SeenTimeChecker?do=22f8650517ba6865f664389e9b028c4b5dbc8977554412758c35ae6d7f18bc4503bf6f0e67da9796e458eb91567068af9ab5ff83b216b16af4af773db58e1db41b20909a04efd4d2748cfe1d4e847419cf878f9a26ce15a0' border=0 width=0 height=0 style='display:none'>