Skip to content

Instantly share code, notes, and snippets.

View satoru-naruko's full-sized avatar

satoru-naruko

  • 18:49 (UTC +09:00)
View GitHub Profile
@satoru-naruko
satoru-naruko / gsttestapp.cpp
Last active December 2, 2018 13:53
gstreamer tutorial
// gsttestapp.cpp : このファイルには 'main' 関数が含まれています。プログラム実行の開始と終了がそこで行われます。
//
#include "pch.h"
#include <gst/gst.h>
int basic_tutorial_1(int argc, char *argv[]);
int main(int argc, char *argv[])
{
@satoru-naruko
satoru-naruko / file0.cs
Last active July 22, 2018 10:38
(解決)Xamarin Prism.Forms でViewModelがインスタンス化されない ref: https://qiita.com/n-satoru/items/a886e73e045d84d5057a
namespace プロジェクト名.ViewModels // ← namespaceも一致させないといけない
{
public class SliderSampleViewModel : ViewModelBase
{
}
}
@satoru-naruko
satoru-naruko / Mouse.cs
Last active April 1, 2018 11:41
マウス座標の制御
[DllImport("USER32.dll", CallingConvention = CallingConvention.StdCall)]
static extern void SetCursorPos(int X, int Y);
[DllImport("USER32.dll", CallingConvention = CallingConvention.StdCall)]
static extern void mouse_event(int dwFlags, int dx, int dy, int cButtons, int dwExtraInfo);
// マウス(左)ダウン
private const int MOUSEEVENTF_LEFTDOWN = 0x2;
// マウス(左)アップ
private const int MOUSEEVENTF_LEFTUP = 0x4;